Ubuntu_Documents.zip 没有被复制到 Local_Backup_Dir?
/home/andy/Backup/Ubuntu_Mate_20.04/ 确实存在。
其他文件正在被复制到该目录。
有人可以提供一些我可以检查的东西吗?
谢谢。
Backup_Directory="/media/andy/Maxtor/Backup/"
Local_Backup_Dir="/home/andy/Backup/Ubuntu_Mate_20.04/"
cd $DOCS
touch Blank.odt
zip -u Ubuntu_Documents.zip *.txt *.doc *.rtf *.html *.png *.pdf *.odt *.ods *.odg *.csv *.xls *.jpg
## ONLY copy file if it's newer than destination file
##
rsync --progress -r -u Ubuntu_Documents.zip $Backup_Directory
rsync --progress -r -u Ubuntu_Documents.zip $Local_Backup_Dir
使用 pathlld.sh 脚本,我得到了这个。
andy@7 ~/bin> pathlld.sh /home/andy/Backup/Ubuntu_Mate_20.04/Ubuntu_Documents.zip
drwxr-xr-x 20 root root 4096 Nov 12 22:46 /
/dev/sda3 on / type ext4 (rw,relatime,errors=remount-ro)
drwxr-xr-x 3 root root 4096 Nov 12 21:08 /home
drwxr-x--- 31 andy andy 4096 Nov 28 18:38 /home/andy
drwxrwxr-x 7 andy andy 4096 Nov 18 06:59 /home/andy/Backup
drwxrwxr-x 4 andy andy 4096 Nov 28 22:20 /home/andy/Backup/Ubuntu_Mate_20.04
-rw-rw-r-- 1 andy andy 35287502 Nov 28 20:52 /home/andy/Backup/Ubuntu_Mate_20.04/Ubuntu_Documents.zip