Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Linux command: rsync
(edit)
Revision as of 07:10, 31 January 2018
361 bytes added
,
07:10, 31 January 2018
→Create local backups
Line 20:
Line 20:
* -S – handle sparse files efficiently
* -S – handle sparse files efficiently
* --delete – if the file is deleted from the source directory, delete it from the target directory
* --delete – if the file is deleted from the source directory, delete it from the target directory
+
+
== From your local machine ==
+
rsync -chavzP --stats user@remote.host:/path/to/copy /path/to/local/storage
+
+
== From your local machine with a non standard ssh port ==
+
rsync -avz -e "ssh -p $portNumber" user@remote.host:/path/to/copy /local/path
+
+
== Or from the remote host ==
+
rsync -chavzP --stats /path/to/copy user@host.remoted.from:/path/to/local/storage
== Remote backups ==
== Remote backups ==
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version