Page 1 of 1

Uploaded backup file doesn't show

Posted: Thu Jul 23, 2015 11:03 am
by missionaryman
Hi,

I've uploaded a backup file from another server to /home/backup so I can restore the data to a new server.

Unfortunately, the file does not appear in the backup list, either via CLI (v-list-user-backups admin) or via the web control panel.

How do I get VestaCP to see my new backup file?

Thanks,

Adam

Re: Uploaded backup file doesn't show

Posted: Thu Jul 23, 2015 11:14 am
by tjebbeke
If you want to see the backup in the list, you need to edit some config files.

You can restore the user via:

Code: Select all

v-restore user username backupfile

v-restore USER BACKUP [WEB] [DNS] [MAIL] [DB] [CRON] [UDIR] [NOTIFY]

Re: Uploaded backup file doesn't show

Posted: Thu Jul 23, 2015 11:58 am
by missionaryman
What are the config files I need to edit?

Re: Uploaded backup file doesn't show

Posted: Thu Jul 23, 2015 12:41 pm
by skurudo
missionaryman wrote:What are the config files I need to edit?
/usr/local/vesta/data/users/YOURUSER/backup.conf

Inside:

Code: Select all

BACKUP='YOURUSER.2015-07-23.tar' TYPE='local' SIZE='1' WEB='YOURDOMAIN.ru' DNS='YOURDOMAIN.ru' MAIL='YOURDOMAIN.ru' DB='YOURBASE_default' CRON='' UDIR='tmp' RUNTIME='1' TIME='02:00:02' DATE='2015-07-23'

Re: Uploaded backup file doesn't show

Posted: Thu Jul 23, 2015 2:34 pm
by missionaryman
Ok, so judging from the backup.conf file, backups can only be restored via the control panel IF they've been created on that server. To restore a backup from another server requires a CLI command instead.

Am I right?

Re: Uploaded backup file doesn't show

Posted: Fri Jul 24, 2015 6:07 am
by skurudo
missionaryman wrote:To restore a backup from another server requires a CLI command instead.Am I right?
Half-right, you can add info about your backup to file and press restore button. But of course much simpler use CLI command.