forked from pat/backup
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'push_pull' of git://github.com/splendeo/backup into burns
- Loading branch information
Showing
23 changed files
with
861 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# encoding: utf-8 | ||
|
||
module Backup | ||
module Configuration | ||
module Syncer | ||
module RSync | ||
class Local < Configuration::Base | ||
class << self | ||
|
||
## | ||
# 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 | ||
|
||
## | ||
# Additional options for the rsync cli | ||
attr_accessor :additional_options | ||
|
||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# encoding: utf-8 | ||
|
||
module Backup | ||
module Configuration | ||
module Syncer | ||
module RSync | ||
class Pull < Push | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# encoding: utf-8 | ||
|
||
module Backup | ||
module Configuration | ||
module Syncer | ||
module RSync | ||
class Push < Local | ||
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 | ||
|
||
## | ||
# Flag for compressing (only compresses for the transfer) | ||
attr_accessor :compress | ||
|
||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.