I'm trying to copy (in a sh script) the latest/newest database snapshot from a directory, to another, mounted, like this:
It seems to work as it should, but throws some errors:
Anyway to get rid of there errors?
Code:
# cp -- `ls -t /www_master/sites/ecommerce/var/backups/* | head -1` /mnt/up/wsrv09/Backups
It seems to work as it should, but throws some errors:
Code:
...
cp: -rw-rw-r--: No such file or directory
cp: 1: No such file or directory
cp: root: No such file or directory
cp: www: No such file or directory
cp: 42M: No such file or directory
cp: Sep: No such file or directory
cp: 2: No such file or directory
cp: 04:00: No such file or directory
...
Code:
# ls /mnt/up/wsrv09/Backups/
total 172 MB
-rwxr-xr-x 1 root wheel 42M Sep 2 14:12 1788314401_db.sql
Anyway to get rid of there errors?