Skip to content

Commit

Permalink
updated templates
Browse files Browse the repository at this point in the history
  • Loading branch information
kikito committed Jan 4, 2012
1 parent de5b323 commit 06b3cac
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
12 changes: 12 additions & 0 deletions templates/cli/utility/syncer/rsync_local
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
##
# RSync::Local [Syncer]
#
sync_with RSync 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"
end
end
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
##
# RSync [Syncer]
# RSync::Pull [Syncer]
#
sync_with RSync do |rsync|
sync_with RSync::Pull do |rsync|
rsync.ip = "123.45.678.90"
rsync.port = 22
rsync.username = "my_username"
Expand Down
17 changes: 17 additions & 0 deletions templates/cli/utility/syncer/rsync_push
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
##
# RSync::Push [Syncer]
#
sync_with RSync::Push do |rsync|
rsync.ip = "123.45.678.90"
rsync.port = 22
rsync.username = "my_username"
rsync.password = "my_password"
rsync.path = "~/backups/"
rsync.mirror = true
rsync.compress = true

rsync.directories do |directory|
directory.add "/var/apps/my_app/public/uploads"
directory.add "/var/apps/my_app/logs"
end
end

0 comments on commit 06b3cac

Please sign in to comment.