Online computer courses, code, programming tutorial and sidebar information for monitoring Canadian S&P/TSX index. Build friendship and networking. Welcome to visit my blogs often!!! I also have two other sites: YouTube Channel and Google site.
Adsense
Popular Posts
- PHPWind-- A PHP forum script applcaition in China
- How to blend adsense inside your post?
- Formatting my post
- Notepad++ - Add C++ compiler
- Install PHPMailer 5.2.4 and use smtp gmail
- Set up a child account and set screen time limit in Windows 8
- Wayback Machine - see archived versions of web pages across time
- phpexcel toggle expand and hide column in EXCEL and summary
- Install PHP ibm_db2 extension in Linux (redHat)
- PHP: add a download as pdf file button in report page
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/
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment