Sha256: a47d035d2f6b9bc026c4cfebb37140e04a501b983c8b7d7c53225d441cad6316
Contents?: true
Size: 572 Bytes
Versions: 76
Compression:
Stored size: 572 Bytes
Contents
## # RSync::Local [Syncer] # sync_with RSync::Local do |rsync| rsync.path = "~/backups" rsync.mirror = true rsync.directories do |directory| directory.add "/var/apps/my_app/public/uploads" directory.add "/var/apps/my_app/logs" # Exclude files/folders. # Each pattern will be passed to rsync's `--exclude` option. # # Note: rsync is run using the `--archive` option, # so be sure to read the `FILTER RULES` in `man rsync`. directory.exclude '*~' directory.exclude 'tmp/' end end
Version data entries
76 entries across 76 versions & 12 rubygems