> On Feb 15, 2017, at 11:11 AM, Pavel Raiskup <[email protected]> wrote: > > On Wednesday, February 15, 2017 10:58:22 AM CET Robert Kudyba wrote: >> >>> On Feb 8, 2017, at 9:55 AM, Pavel Raiskup <[email protected]> wrote: >>> >>> On Wednesday, February 8, 2017 9:39:39 AM CET Robert Kudyba wrote: >>>> >>>>> On Feb 8, 2017, at 9:34 AM, Pavel Raiskup <[email protected]> wrote: >>>>> >>>>> On Wednesday, February 8, 2017 9:11:50 AM CET Robert Kudyba wrote: >>>>>> It varies depending on the excludes and what part of the file system we >>>>>> are >>>>>> backing up. That’s why I included the actual backup script. But for >>>>>> arguments >>>>>> sake here would be one example: >>>>> >>>>> Robert, we need to rule out the possibility that you in reality >>>>> accidentally use >>>>> --atime-preserve, so generated example is not enough. >>>> >>>> In the /etc/drobo-backup.conf file I have these 2 options: >>>> >>>> backup = /home/users --atime-preserve ...... >>> ^^^^^^^^^^^^^^^^ >>> Is this the issue? >>> >>> Pavel >> >> Hi Pavel finally getting back around to this. Notice the exclude directive >> is included. Here’s a comment we have in the config file: >> >> # Change default tar arguments if desired. By default these are: >> #tarargs=--atime-preserve --one-file-system >> # Because aquota.user cannot have its atime reset, tar will give >> # an error status=2 if --atime-preserve is used when backing it up. >> # We don't want to lose the backup of this file but we also don't >> # want to routinely ignore tar status=2. Solution is to make >> # --atime-preserve a per-backup argument and omit it when backing >> # up aquota.user separately. >> # IMPORTANT: include --atime-preserve on all of these except aquota.user >> >> Here are the options we have set for backup paths: >> >> backup = /home/users --atime-preserve --exclude=aquota.user --exclude=.gvfs >> --exclude=S.gpg-agent --exclude=.adobe --exclude=.dropbox --exclude=.cache >> --exclude-caches-all >> backup = /home/users/aquota.user >> backup = /home --atime-preserve --exclude=.gvfs --exclude=.gnupg >> --exclude=aquota.user >> >> Still getting these errors: >> /bin/tar: home/users/aquota.user: Cannot utime: Operation not permitted >> /bin/tar: Exiting with failure status due to previous errors >> >> Backup of /home/users FAILED >> Backed up /home/users to /ourdomain/home-users-FAILED.tgz > > Robert, I would encourage you to run the backup script with some logging > output, so we konw what the commandline is. E.g. print out the tar > command right before it is actually called. > > I bet the --atime-preserve _is_ used, which causes this error.
Here you go but notice the exclude (--exclude=aquota.user) is there /usr/local/sbin/drobo-backup -c /etc/drobo-backup.conf -v -n Reading configfile /etc/drobo-backup.conf /bin/mkdir /ourdomain ionice -c2 -n7 nice -n10 /bin/tar -cf /ourdomain/home-users-new.tgz -C / --one-file-system --warning=no-file-ignored --warning=no-file-changed --warning=no-file-removed --use-compress-program=pigz home/users --atime-preserve --exclude=aquota.user --exclude=.gvfs --exclude=S.gpg-agent --exclude=.adobe --exclude=.dropbox --exclude=.cache --exclude-caches-all /bin/mkdir /ourdomain ionice -c2 -n7 nice -n10 /bin/tar -cf /ourdomain/home-users-aquota.user-new.tgz -C / --one-file-system --warning=no-file-ignored --warning=no-file-changed --warning=no-file-removed --use-compress-program=pigz home/users/aquota.user /bin/mkdir /ourdomain ionice -c2 -n7 nice -n10 /bin/tar -cf /ourdomain/home-new.tgz -C / --one-file-system --warning=no-file-ignored --warning=no-file-changed --warning=no-file-removed --use-compress-program=pigz home --atime-preserve --exclude=.gvfs --exclude=.gnupg --exclude=aquota.user /bin/mkdir /ourdomain ionice -c2 -n7 nice -n10 /bin/tar -cf /ourdomain/etc-new.tgz -C / --one-file-system --warning=no-file-ignored --warning=no-file-changed --warning=no-file-removed --use-compress-program=pigz etc --atime-preserve /bin/mkdir /ourdomain ionice -c2 -n7 nice -n10 /bin/tar -cf /ourdomain/root-new.tgz -C / --one-file-system --warning=no-file-ignored --warning=no-file-changed --warning=no-file-removed --use-compress-program=pigz root --atime-preserve --exclude=.cache --exclude=.cache/keyring-* --exclude-caches-all /bin/mkdir /ourdomain ionice -c2 -n7 nice -n10 /bin/tar -cf /ourdomain/usr-local-new.tgz -C / --one-file-system --warning=no-file-ignored --warning=no-file-changed --warning=no-file-removed --use-compress-program=pigz usr/local --atime-preserve /bin/mkdir /ourdomain ionice -c2 -n7 nice -n10 /bin/tar -cf /ourdomain/var-lib-new.tgz -C / --one-file-system --warning=no-file-ignored --warning=no-file-changed --warning=no-file-removed --use-compress-program=pigz var/lib --atime-preserve --exclude=var/lib/rpm --exclude=var/lib/yum --exclude=mysql/mysql.sock --exclude=gssproxy/default.sock --exclude=samba/private/msg.sock /bin/mkdir /ourdomain ionice -c2 -n7 nice -n10 /bin/tar -cf /ourdomain/var-backup-new.tgz -C / --one-file-system --warning=no-file-ignored --warning=no-file-changed --warning=no-file-removed --use-compress-program=pigz var/backup --atime-preserve /bin/mkdir /ourdomain ionice -c2 -n7 nice -n10 /bin/tar -cf /ourdomain/var-log-new.tgz -C / --one-file-system --warning=no-file-ignored --warning=no-file-changed --warning=no-file-removed --use-compress-program=pigz var/log --atime-preserve /bin/mkdir /ourdomain ionice -c2 -n7 nice -n10 /bin/tar -cf /ourdomain/var-spool-new.tgz -C / --one-file-system --warning=no-file-ignored --warning=no-file-changed --warning=no-file-removed --use-compress-program=pigz var/spool --atime-preserve /bin/mkdir /ourdomain ionice -c2 -n7 nice -n10 /bin/tar -cf /ourdomain/var-www-new.tgz -C / --one-file-system --warning=no-file-ignored --warning=no-file-changed --warning=no-file-removed --use-compress-program=pigz var/www --atime-preserve /bin/mkdir /ourdomain ionice -c2 -n7 nice -n10 /bin/tar -cf /ourdomain/var-yp-new.tgz -C / --one-file-system --warning=no-file-ignored --warning=no-file-changed --warning=no-file-removed --use-compress-program=pigz var/yp --atime-preserve Second try renamed /ourdomain/home-users-new.tgz to /ourdomain/home-users.tgz
