![]() ![]() Orgfilename_stored_in="filename.txt" # filename where the original name is keptĬommand_backup="/usr/local/vesta/bin/v-backup-users" # command to backup usersĬommand_restore="/usr/local/vesta/bin/v-restore-user" # Declare variables user for paths and filenames & backup executableīackupdir=/backup # Where backups are stored by vestacp # reacreating a tar file with the original name If a folder is found, we assume it is a user, and we will recreate a tar file for this user Te restore files, simply restore from your backup a user in de /backup/ folder This script makes a backup and can upload it # tar/untar file for vestacp to make use of incremental backups. With crontab I fire every 4 hours this script, using Webdav to make the remote backup. I tried to do everything in variables above the dashed line, but for one or the other reason Duplicat refuses to fire itself using a variable. Duplicati can export the command line, so that is only a copy/paste action. The script I'm using now is included, be aware that you have to adjust the command that (in my case) Duplicati uses. I'm not a programmer, so a real bash-script-guru will laugh his ass off if he/she sees my script, but it is fully functionalĭuplicati is able to use Webdav, (S)FTP, Onedrive and lot's of other nice options for remote backup with all kind of options and backup strategies. Than you are able the restore the users with the standard myVesta tooling. The script will re-create a tar file, using the same name as the unpacked original. ![]() If you use Duplicati to restore user files, the bash script will see folders in the backup folder and assume that you try to restore users. upload the unpacked user folders (I use Duplicati for that)Īnd that's it.fires off a backup for all users (standard vesta binary).In the /backup folder are all "tar" files stored that myVesta can make. What I miss is a incremental backup scenario. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |