bash-backup-rotation-script
bash-backup-rotation-script copied to clipboard
Script Failure
After setting up the configuration file and running the script, I get the following error:
root@kraken:~/backups# bash backup_rotation.sh
Removing expired backups...
Creating backup dir..
Copy backup to local dir..
mv: cannot stat `/tmp/backup.incoming/*': No such file or directory
Finish..
However the directory does exist:
root@kraken:~/backups# ls -ahl /tmp/backup.incoming/
total 8.0K
drwxr-xr-x 2 root root 4.0K Dec 1 16:30 .
drwxrwxrwt 9 root root 4.0K Dec 1 16:30 ..
Any idea what could be happening