604
Comment: add some rsync.net notes rsync, snapshot, pwd.
|
1340
Add more cp details + rsync rename option.
|
Deletions are marked like this. | Additions are marked like this. |
Line 6: | Line 6: |
* Links [[Cloud/Git-Annex]] | |
Line 11: | Line 12: |
{{{ ssh 1416@ch-s011.rsync.net du -s }}} | |
Line 14: | Line 16: |
{{{ ssh 1416@ch-s011.rsync.net cp -al backup.0 backup.1 }}} | {{{ ssh 1416@ch-s011.rsync.net cp -al backup.0 backup.1 #or# cp -rlp photos photos-work # -p same as --preserve=mode,ownership,timestamps # -l, --link hard link files instead of copying # -R, -r, --recursive copy directories recursively }}} * rename and move, using above cp -l to make hardlink copy, so rsync can find original file, only change in photos-work. Rename after. {{{ sync -avHP --delete-after --no-inc-recursive ~/family/photos ~/family/photos-work remotebox:backups }}} |
Line 17: | Line 29: |
* rsync test. {{{ rsync -av --dry-run PhotosGIT/ 1416@ch-s011.rsync.net:PhotosGIT/ }}} |
|
Line 20: | Line 34: |
---- CategoryStorage CategoryLinux |
rsync.net
Links Cloud/Git-Annex
- rsync and ssh storage provider.
- Shortcut notes
- ls files
ssh 1416@ch-s011.rsync.net ls ssh 1416@ch-s011.rsync.net du -s
sync dir datadir to rsync.net '''NOTE:''' dont need -e ssh, ssh is now default for rsync2.6
rsync -av datadir 1416@ch-s011.rsync.net:datadir
- make snapshot with hardlinks cp -al
ssh 1416@ch-s011.rsync.net cp -al backup.0 backup.1 #or# cp -rlp photos photos-work # -p same as --preserve=mode,ownership,timestamps # -l, --link hard link files instead of copying # -R, -r, --recursive copy directories recursively
- rename and move, using above cp -l to make hardlink copy, so rsync can find original file, only change in photos-work. Rename after.
sync -avHP --delete-after --no-inc-recursive ~/family/photos ~/family/photos-work remotebox:backups
- password change, notice -t
ssh -t 1416@ch-s011.rsync.net passwd
- rsync test.
rsync -av --dry-run PhotosGIT/ 1416@ch-s011.rsync.net:PhotosGIT/
- ls files
...