-av Synchronizing Directories
Notation 123//tmp/333/
It means to synchronize the 123 files to the end of the/tmp/333//sync directory
Two directories.
/////////////////////////////////////////////////////////////////////////////////////////////////
Synchronizing Soft connections
1. Create a soft connection
2. View Soft Connection File details
3. Sync to/tmp/333/
4. View the soft connection file for the/tmp/333/. If it is a remote synchronization, there is no local soft connection to the file, it will become a red bad file. Want to synchronize the original file plus-L
1. synchronizing files to/tmp/333/
2. View/tmp/333/No soft connect file, become the source file.
3.diff compares two file differences. There is no difference in results.
//////////////////////////////////////////////////////////////////////////////////////////////////
--delete The original directory deletes a file synchronization so that the local directory also deletes this file.
1. By deleting one of the documents of the original target,
2. Sync directly, not sync to any data.
3. Add--delete Sync, display deleting 666.txt
4. View the local directory and the 666.txt file is deleted.
////////////////////////////////////////////////////////////////////////////////////////////////
Synchronization does not overwrite local modifications. -U
1. Modify local file 11.txt
2. Sync data, show sync 11.txt
3. View Local 11.txt
4. Modify the local file 11.txt again
5. Add-u to synchronize data.
6. View local files, is the status of the modification.
7. View the source files.
//////////////////////////////////////////////////////////////////////////////////////////////////
Specifies that a file or directory is not synchronized
1. Synchronization specifies that the 23 directory is not synchronized.
2. View the original directory
3. View the local directory
The same example.
A wildcard designation.
/////////////////////////////////////////////////////////////////////////////////////////////
Shows the progress of the synchronization. Useful for large files.
////////////////////////////////////////////////////////////////////////////////////////////////////
Compress sync, save bandwidth and save time.
[Email protected] ~]# Rsync-avlupz 123//tmp/333/
Linux daily Management-rsync common options detailed