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
Support BACKUP_TYPE=incremental/differential also for BACKUP_URL=usb: #1145
Comments
@jsmeix By now you know my point of view - do not make of ReaR a backup tool which must support incremental backup. And, as USB work-flow use timestamp directories it would be hard to implement. |
I completely agree with your point of view. I only thought that when ReaR has support for Personally I would prefer ReaR has only basic If my #1146 |
…_TYPE_incremental_or_differential_issue1141_and_issue1145 Forbid BACKUP_URL=usb for BACKUP_TYPE=incremental/differential. Incremental or differential backup is currently only known to work with BACKUP_URL=nfs. Other BACKUP_URL schemes may work but at least BACKUP_URL=usb is known not to work with incremental or differential backup, see #1141 and #1145
Perhaps it is possible with low effort to make My (currently totally untested) basic idea behind is See conf/default.conf why there is no need for NETFS_KEEP_OLD_BACKUP_COPY FYI: |
As expected as side-effect of implementing Additional code change # git diff usr/share/rear/prep/NETFS/default/070_set_backup_archive.sh ... @@ -55,7 +55,7 @@ ... - Error "BACKUP_TYPE incremental or differential does not work with BACKUP_URL=usb:///..." + LogPrint "Note: BACKUP_TYPE incremental or differential needs special setup for BACKUP_URL=usb:///..." ... Used config OUTPUT=USB USB_DEVICE=/dev/disk/by-label/REAR-000 USB_PREFIX="rear/$HOSTNAME/incrementalbackups" USB_RETAIN_BACKUP_NR=999 BACKUP=NETFS BACKUP_URL=usb:///dev/disk/by-label/REAR-000 BACKUP_TYPE=incremental FULLBACKUP_OUTDATED_DAYS=7 FULLBACKUPDAY=Thu First I run "usr/sbin/rear -d -D mkbackup" Afterwards I change the config to FULLBACKUPDAY=Wed to get incremental backups. I made two subsequent incremental backups # echo testy1 >/testy1 # usr/sbin/rear -d -D mkbackup # echo testy2 >/testy2 # usr/sbin/rear -d -D mkbackup On the REAR-000 medium I get (excerpt) rear/e205/incrementalbackups rear/e205/incrementalbackups/kernel rear/e205/incrementalbackups/rear-e205.log rear/e205/incrementalbackups/initrd.cgz rear/e205/incrementalbackups/2017-01-12-1105-F.tar.gz rear/e205/incrementalbackups/syslinux.cfg rear/e205/incrementalbackups/2017-01-12-1115-I.tar.gz rear/e205/incrementalbackups/backup.log rear/e205/incrementalbackups/2017-01-12-1114-I.tar.gz and for me "rear recover" works well with that. @dwerner1 |
When doing rear -d -D mkbackup with local.conf like
.. I end up with
Here are some lines from the log file
I'm using the current git version and the changes mentioned by @jsmeix in #1160 |
Additionally you need to use the change mentioned by me in |
Uuh, damn, sorry |
OK, that worked out. I made one full and two incremental backups, just the menu labels look like you described in #1160 |
That's a really nice state out of my view! Many thanks @jsmeix ! |
@dwerner1 I will sleep over it so that tomorrow I have hopefully good idea |
…on_NFS_issue1164 Align backup on USB with backup on NFS. 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
With |
Neither BACKUP_TYPE 'incremental' nor 'differential'
works with BACKUP_URL=usb:///...
see
#1141 (comment)
Up to ReaR 2.0
BACKUP_URL=usb:///... only works
with 'nomal' BACKUP_TYPE="".
The text was updated successfully, but these errors were encountered: