I've moved the script to /usr/local/bin/duplicity-backup
and the configuration file to /etc/duplicity-backup.conf
and both are owned by root:root
. Everything backs up just fine except for files owned by root, such as automysqlbackup files in /var/lib/automysqlbackup
. For example, these directories are backed up:
Mon Aug 12 22:51:22 2013 var
Tue Aug 13 01:31:55 2013 var/lib
Tue Aug 13 07:35:42 2013 var/lib/automysqlbackup
Tue Aug 13 01:36:25 2013 var/lib/automysqlbackup/daily
Tue Aug 13 07:35:41 2013 var/lib/automysqlbackup/daily/somedatabase
But the actual files inside somedatabase
aren't (like somedatabase_2013-08-13_07h35m.Tuesday.sql.gz
). These files have 0600
permissions and are owned by root:root
.