Thursday, February 23, 2012

rsync in Windows, hidden files



I used rsync.exe from DeltaCopy for incremental backup to remote server in Windows. DeltaCopy can be downloaded from
http://www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsp

Several issue need to fix
1) I used  command line:
rsync.exe  -v -rlt -z --chmod=a=rw,Da+x --delete "/cygdrive/C/Users/jiansen/Desktop/CAS/jiansen_dir/www_SCHS/" "//192.168.1.73/jiansen/JIANSEN-PC/www_SCHS/"
The final files are  hidden in Windows.
This is because  -x in cygwin equals to hidden files in Windows
# ls -ls *.txt
0 -rwxrw-rwx 1 user everyone 0 Nov 27 23:27 hidden.txt*
0 -rwxrw-rw- 1 user everyone 0 Nov 27 23:27 visible.txt*
You can find more information
http://forum.qnap.com/viewtopic.php?f=189&t=37351&hilit=QNAP+ReadyNAS+rsync

2) To view hidden files in Windows (but I prefer not to  have hidden files)
just click on the Organize button at the top menu bar in any folder, and then select “Folder and Search Options” from the menu.
and select "show hidden files and folders"

3) The new command:
rsync.exe  -v -rlt  "//Jiansen-PC/Users/jiansen/Desktop/CAS/jiansen_dir/www_SCHS/" "//192.168.1.73/jiansen/JIANSEN-PC/www_SCHS/"
This command is for the final destination file attribute not hidden.
You may need to install cygwin
http://www.cygwin.com/

No comments:

Post a Comment