I have a duplicity backup script set to run once per day through the root cron tab.
I set it up like this:
sudo crontab -e -u root
and added the line:
00 03 * * * root /home/[myusername]/Scripts/Backups/DuplicityBackup.sh
the script has commands to write to a text file like this:
echo "Creating backup of data directory" PASSPHRASE='[mypassword]' duplicity /usr/share/nginx/data file:///dysonbackup/datadir &>> /home/[myusername]/Scripts/Backups/backup_logs/data_backup_log.txt echo "Done"
Running the script itself as root starts the backup and writes to the text file.
sudo crontab -l
shows it listed
grep DuplicityBackup.sh /var/log/syslog
May 28 03:00:01 [myservername] CRON: (root) CMD (root /home/[myusername]/Scripts/Backups/DuplicityBackup.sh)
so I am assuming it at least triggered to run, but there is no new information on the text file.
And it does not appear that the duplicity backup is running as there are no new files in the backup directory.