Amanda howto for openhabian and NAS

backup
openhabian
amanda
Tags: #<Tag:0x00007f1e5f36d3f8> #<Tag:0x00007f1e5f36d218> #<Tag:0x00007f1e5f36d0d8>
(Markus Storm) #141

no I mean before the $ in backups/amanda_data_$(date +%Y%m%d%H%M%S)

0 Likes

(Thowa) #142

So I’ve changed the backup.sh like this :

mkdir -p ${storage}/amanda-backups; chown ${backupuser}:backup ${storage}/amanda-backups
echo "0 2 * * * root (cd /; /bin/tar czf ${storage}/amanda-backups/amanda_data_\$(date +%Y%m%d%H%M%S).tar.g$

and reinatalled Amanda again.The Cron entry now looks like this:

0 1 * * * backup /usr/sbin/amdump openhab-dir >/dev/null 2>&1
0 18 * * * backup /usr/sbin/amcheck -m openhab-dir >/dev/null 2>&1
0 2 * * * root (cd /; /bin/tar czf /storage/server/amanda-backups/amanda_data_$(date +\%Y\%m\%d\%H\%M\%S).tar.gz etc/amanda var/lib/amanda var/log/amanda; find /storage/server -name amanda_data_\* -mtime +30 -delete) >/dev/null 2>&1
0 Likes

(Markus Storm) #143

ok, that now should work for you

0 Likes

(Markus Storm) #144

See this.

0 Likes