-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Hi. Thank you for this very helpful script!! As rsync.net does its own daily snapshots I want to override existing backups on rsync.net with this script. Maybe it is worth to add a hint in the README that for cloud stores with snapshots built in you may want to remove the date, something like:
139 # Export lxc image to image.tar.gz file.
140 if $LXC image export $LXCCONTAINER-BACKUP-$BACKUPDATE-IMAGE $LXCCONTAINER-BACKUP-IMAGE; then
141 lecho "Image: Succesfully exported an image of $LXCCONTAINER-BACKUP-IMAGE to $WORKDIR/$LXCCONTAINER-BACKUP-IMAGE.tar.gz"
142 else
143 lecho "Image: Could not publish image from $LXCCONTAINER-BACKUP-IMAGE to $WORKDIR/$LXCCONTAINER-BACKUP-IMAGE.tar.gz"
Also deleting the files from $WORKDIR immediately after upload to the cloud store may make sense if the containers are large and space is sparse:
161 lecho "Upload: Backup for $LXCCONTAINER uploaded succesfully to $RCLONETARGET." && rm $WORKDIR/$LXCCONTAINER-BACKUP-IMAGE.tar.gz
162 else
Metadata
Metadata
Assignees
Labels
No labels