forked from pat/backup
/
rsync.rb
45 lines (35 loc) · 927 Bytes
/
rsync.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# encoding: utf-8
module Backup
module Configuration
module Syncer
class RSync < Base
class << self
##
# Server credentials
attr_accessor :username, :password
##
# Server IP Address and SSH port
attr_accessor :ip
##
# The SSH port to connect to
attr_accessor :port
##
# Directories to sync
attr_accessor :directories
##
# Path to store the synced files/directories to
attr_accessor :path
##
# Flag for mirroring the files/directories
attr_accessor :mirror
##
# Flag for compressing (only compresses for the transfer)
attr_accessor :compress
##
# Additional options for the rsync cli
attr_accessor :additional_options
end
end
end
end
end