New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Align backup on USB with backup on NFS #1165
Align backup on USB with backup on NFS #1165
Conversation
For me incremental backups "just work" now with OUTPUT=USB USB_DEVICE=/dev/disk/by-label/REAR-000 USB_SUFFIX="myincrementalbackups" BACKUP=NETFS BACKUP_URL=usb:///dev/disk/by-label/REAR-000 BACKUP_TYPE=incremental FULLBACKUP_OUTDATED_DAYS=7 FULLBACKUPDAY=Wed |
The default behaviour still works for me with OUTPUT=USB USB_DEVICE=/dev/disk/by-label/REAR-000 BACKUP=NETFS BACKUP_URL=usb:///dev/disk/by-label/REAR-000 After 5 times "rear mkbackup" I get on the REAR-000 medium rear/e205/20170113.1422 rear/e205/20170113.1422/kernel rear/e205/20170113.1422/rear-e205.log rear/e205/20170113.1422/syslinux.cfg rear/e205/20170113.1422/backup.log rear/e205/20170113.1422/initrd.cgz rear/e205/20170113.1422/backup.tar.gz rear/e205/20170113.1429 rear/e205/20170113.1429/kernel rear/e205/20170113.1429/rear-e205.log rear/e205/20170113.1429/syslinux.cfg rear/e205/20170113.1429/backup.log rear/e205/20170113.1429/initrd.cgz rear/e205/20170113.1429/backup.tar.gz rear/e205/20170113.1442 rear/e205/20170113.1442/kernel rear/e205/20170113.1442/rear-e205.log rear/e205/20170113.1442/syslinux.cfg rear/e205/20170113.1442/backup.log rear/e205/20170113.1442/initrd.cgz rear/e205/20170113.1442/backup.tar.gz As everything looks o.k. for me I will merge it. |
@jsmeix |
@gozora I get more and more the uncomfortable feeling that |
I just finished some testing of BLOCKCONE on USB. I can confirm that USB_SUFFIX works well! V. |
@gozora |
The new config variable USB_SUFFIX
specifies the last part of the backup directory on the USB medium.
When USB_SUFFIX is unset or empty, backup on USB works
in its current default mode (i.e. backward compatible)
which means multiple timestamp backup directories
plus automated rescue environments and backups cleanup
via USB_RETAIN_BACKUP_NR.
When USB_SUFFIX is set, backup on USB works
in compliance with how backup on NFS works
which means a fixed backup directory and
no automated removal of any stuff
(regardless of USB_RETAIN_BACKUP_NR).
When backup on USB behaves as backup on NFS
(i.e. when USB_SUFFIX is set) multiple backups and
incremental/differential backups also work on USB.
See
#1164
#1160
#1145