Differences between revisions 11 and 12
Revision 11 as of 2013-10-01 05:10:28
Size: 1340
Editor: PieterSmit
Comment: Add more cp details + rsync rename option.
Revision 12 as of 2019-12-02 04:08:47
Size: 1595
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 32: Line 32:
== 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/ .
}}}

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/ 

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/ . 

...


CategoryStorage CategoryLinux

Cloud/rsync.net (last edited 2019-12-02 04:08:47 by PieterSmit)