909
Comment: add git-annex sync beteen repo commands.
|
← Revision 12 as of 2019-12-02 04:08:47 ⇥
1595
|
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 18: | Line 32: |
* GIT annex * {{{ git annex initremote myrsync type=rsync rsyncurl=ssh.example.com:/myrsync encryption=joey@kitenet.net git annex describe myrsync "rsync server" git annex add . commit git commit -a -m added git-annex sync git-annex copy --to laptop }}} |
== rsync files owned by root on remote server where you have sudo to local machine == * -L converts symlinked files into files {{{ $ rsync -v -L -a --rsync-path="sudo rsync" USER@letsencrypt-vm:/opt/letsencrypt/shared/ssl-certs_io/live/me.io/ . }}} |
Line 30: | Line 38: |
---- 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
rsync files owned by root on remote server where you have sudo to local machine
-L converts symlinked files into files
$ rsync -v -L -a --rsync-path="sudo rsync" USER@letsencrypt-vm:/opt/letsencrypt/shared/ssl-certs_io/live/me.io/ .
...