Page 1 of 1

backup tmp directories

Posted: Tue Apr 04, 2017 1:45 pm
by bhc
Hi,

I have rclone mounted to ACD, so my backups just get copied to ACD. I have mounted rclone in the location to where the .tar files are created. However, vestacp creates tmp.* files, is there a way to define a location for the tmp folders to be created, as I don't want these uploaded.

Thanks

Re: backup tmp directories

Posted: Tue Apr 04, 2017 2:47 pm
by skurudo
Some prob with backup, please check logs

Code: Select all

/var/log/vesta/backup.log

Re: backup tmp directories

Posted: Tue Apr 04, 2017 6:56 pm
by skamasle
skurudo wrote:Some prob with backup, please check logs

Code: Select all

/var/log/vesta/backup.log
I think he want create tmp in orther location, so, vesta create tmp then pack it if you have remote dirs this can cause problems in network

You can see this -> https://github.com/serghey-rodin/vesta/pull/1142

Re: backup tmp directories

Posted: Tue Apr 04, 2017 7:13 pm
by mehargags
Do you have your Cloud Drive mounted on /backup ??

if so, this is wrong, as Vesta first makes temp directories here, copies alot of files, dumps dB and then compresses it into single files, finally deleting all temp folders.

What you should do is, unmount cloud drive... mount it as /cloud, then run a cron about 1 hours later than your VestaBackup is scheduled, that copies/moves /backup/* to /cloud

make sure to note time taken to backup, you should time your cloud move cron accordingly

hope this helps

Re: backup tmp directories

Posted: Wed Apr 05, 2017 9:13 am
by bhc
ah thanks skamasle, have applied that patch that should do it.

No. /backup is the same, but I have changed the backup dir http://i.imgur.com/LEhUQjs.png.

That being said, /tmp dirs shouldn't be created in the backup location. Personally I'm +1 that github patch.

Re: backup tmp directories

Posted: Tue May 28, 2019 10:55 am
by skurudo