Method: BackupList#rsync!
- Defined in:
- lib/bakman/backuplist.rb
#rsync!(host, remote_folder) ⇒ Object
A method to rsync the backup folder with a remote host describe by #host #host should be username@machine the ssh_keys have to be exchanged before using this (if not, it will failed) /!\ the folder has to exist on the remote host.
123 124 125 126 |
# File 'lib/bakman/backuplist.rb', line 123 def rsync!(host, remote_folder) puts "rsync #{folder}/#{name}* #{host}:#{remote_folder}" `rsync --delete #{folder}/#{name}* #{host}:#{remote_folder}` end |