43 Commits

Author SHA1 Message Date
Eric Torres
9b9744ad1d Fix order of log message handling 2019-04-24 09:19:31 -07:00
Eric Torres
e82ba278d1 Update docstring 2019-04-23 23:18:46 -07:00
Eric Torres
42c0bf0597 Add provisions for resolving a remote host 2019-04-23 23:17:42 -07:00
Eric Torres
8ee295f0c7 Add backupd and related config file 2019-04-23 23:15:51 -07:00
Eric Torres
6c1733bcc9 Run black code formatter 2019-04-23 22:47:40 -07:00
Eric Torres
73995d8efb Split main backup script into separate library modules 2019-04-23 22:47:05 -07:00
Eric Torres
dd64b66a1f Add --umask option 2019-04-23 21:53:20 -07:00
Eric Torres
4db9c04517 Add --port option 2019-04-23 21:52:06 -07:00
Eric Torres
3f8c3b5ae9 Move config module to config/config_files 2019-04-19 23:57:13 -07:00
Eric Torres
afef3ee711 Log at the exception level, not at the library level for rsync 2019-04-18 21:46:33 -07:00
Eric Torres
17029b3467 Docstring update 2019-04-17 21:58:01 -07:00
Eric Torres
a7d30cf91d Use try..finally blocks to ensure calls within context manager 2019-04-17 20:22:28 -07:00
Eric Torres
c8662387b6 Fix uninitialized repo variable 2019-04-17 19:01:38 -07:00
Eric Torres
1d7b10454c If rsync process fails, exit by its return code 2019-04-17 19:00:47 -07:00
Eric Torres
920ad8b68f Implement direct str for Hierarchy object 2019-04-17 10:02:29 -07:00
Eric Torres
93b55cda9b Account for permission errors 2019-04-16 21:38:18 -07:00
Eric Torres
ae08caa6be Use context manager for switching umask 2019-04-16 17:12:06 -07:00
Eric Torres
2587619009 Add comments to snapshot-manager script 2019-04-16 14:27:29 -07:00
Eric Torres
39ca6de46e Add symlinking functionality in create_snapshot 2019-04-16 13:49:23 -07:00
Eric Torres
ef639ed6f1 Add snapshot management script 2019-04-15 23:26:44 -07:00
Eric Torres
dee233b25a Change umask to 0000 when running backup 2019-04-14 22:35:59 -07:00
Eric Torres
a2fb169303 Use fallback option 2019-04-14 22:18:55 -07:00
Eric Torres
8176d7a527 Move some options to library functions 2019-04-14 22:08:37 -07:00
Eric Torres
121bf416f1 Make use of Repository.symlink_snapshot() 2019-04-14 21:01:29 -07:00
Eric Torres
5dd315a447 Ignore PermissionError when creating symlink 2019-04-12 12:55:21 -07:00
Eric Torres
49f5d0f276 Split configuration file handling into its own module 2019-04-12 12:03:16 -07:00
Eric Torres
88e5aa56d4 Minor fixes to file paths and log messages 2019-04-12 10:48:39 -07:00
Eric Torres
cebb418be5 Fix incorrect method call 2019-04-12 10:43:52 -07:00
Eric Torres
95289cbc68 Merge, filter, and sort file entries from multiple files 2019-04-12 10:04:18 -07:00
Eric Torres
7e696df9c2 Backup script maintenance 2019-04-12 08:12:35 -07:00
Eric Torres
8b6b1da7a6 Change file paths 2019-04-10 20:41:56 -07:00
Eric Torres
b151d84a25 Fix incorrect command 2019-04-10 20:20:50 -07:00
Eric Torres
6cd970711f Fix incorrect command 2019-04-10 19:39:01 -07:00
Eric Torres
1ae1acb062 Fix incorrect command 2019-04-10 19:30:16 -07:00
Eric Torres
4351387f68 Third prototype of backup script 2019-04-10 19:21:00 -07:00
Eric Torres
9354dfd303 Remove copies of backup functions in main script 2019-04-10 18:08:36 -07:00
Eric Torres
d8eb9837af Version 3 of working prototype backup script 2019-03-17 19:16:21 -07:00
Eric Torres
ab3eed008c Prototype 2 for backup script 2019-03-17 19:05:26 -07:00
Eric Torres
b48f199afc Fix broken options passing to rsync 2019-03-17 18:38:12 -07:00
Eric Torres
59e31016a8 Early prototype of backup script 2019-03-17 18:27:20 -07:00
Eric Torres
ce4a5e84e0 Add logging code and a few extra command-line flags 2019-03-13 20:43:12 -07:00
Eric Torres
5625987241 Basic framework for main backup script 2019-03-13 02:19:20 -07:00
Eric Torres
a3717ce355 Initial commit 2019-02-07 23:19:21 -08:00