Commit Graph
100 Commits
Author SHA1 Message Date
Fuxino 45a07205a1 Add type hints plus minor code fixes 2024-09-28 09:47:33 +02:00
Fuxino 9390cd2de8 Allow removing remote old backups with sudo if possible
If allowed by the remote server, try using sudo to remove
old backups (rm needs to be allowed in sudoers to run
without password)
2023-10-15 15:39:06 +02:00
Fuxino 77661c0964 Handle getpass exception 2023-07-16 08:22:51 +02:00
Fuxino e3a970217f Improve logging 2023-06-25 11:49:02 +02:00
Fuxino 8968fcd1a8 Fix parsing option bug 2023-06-25 10:12:07 +02:00
Fuxino 35b87c859e Add --user arg 2023-06-20 19:22:22 +02:00
Fuxino f3d5ebd276 Merge branch 'development' 2023-06-20 17:36:40 +02:00
Fuxino fb726a80ab Fix bug
Remove forgotten test code -.-
2023-06-20 17:36:12 +02:00
Fuxino 4701ee0b05 Fix typo 2023-06-19 16:00:21 +02:00
Fuxino dd779d242b Fix crash when config file missing 2023-06-18 22:58:53 +02:00
Fuxino 22a3e8d60f Make paramiko optional 2023-06-18 22:53:29 +02:00
Fuxino a26182cedd Update version number 2023-06-16 19:16:47 +02:00
Fuxino 5b3558c282 Merge branch 'development' 2023-06-16 19:15:44 +02:00
Fuxino 4e6adf3c56 Use dict for config options 2023-06-16 17:42:13 +02:00
Fuxino ffed2dec90 Add numeric-ids option for rsync 2023-06-16 16:18:12 +02:00
Fuxino 169f824d83 Improve documentation 2023-06-15 23:15:00 +02:00
Fuxino f77ff2d24f Allow running remote rsync as sudo 2023-06-15 23:12:19 +02:00
Fuxino ffe2b69c99 Fix error in man page 2023-06-15 22:12:38 +02:00
Fuxino 82b0ea88fa Merge branch 'master' into development 2023-06-15 22:10:19 +02:00
Fuxino 970d3dde1e Add manual selection of rsync options 2023-06-15 21:30:43 +02:00
Fuxino 4d23bde906 Check that inputs from command line exist
Check that the inputs specified on the command line (i.e. with the
option '-i' or '--input') exist and print a warning when they don't.
If no valid inputs are found, exit.
2023-06-15 18:44:22 +02:00
Fuxino ff70358496 Version bump 2023-06-15 17:38:00 +02:00
Fuxino 6f1e91e2cd Add more return codes 2023-06-15 17:14:17 +02:00
Fuxino b3fee0d022 Add some meaningful return codes 2023-06-15 16:58:56 +02:00
Fuxino d63eb8f771 Improve handling of missing inputs 2023-06-15 15:34:00 +02:00
Fuxino f95cd86cdc Check backup folder for remote backup
Check that the backup folder exists at the end of the backup when
performing backup over ssh
2023-06-15 11:48:23 +02:00
Fuxino f37cd89b4e Fix parsing of old config file 2023-06-15 09:30:59 +02:00
Fuxino d1b429d37a Merge branch 'master' into development 2023-06-04 16:53:22 +02:00
Fuxino 56df958c5b Add expansion of params in config file
Allow using wildcards (i.e. * to match any character and ~ to match the
user's home directory) in inputs and ouput variables in config file
2023-06-04 12:09:30 +02:00
Fuxino d6d9fbf6e4 Add no-syslog option 2023-06-04 10:16:50 +02:00
Fuxino cee4d13837 Fix bug
Fix crash when attempting to close a non-existent paramiko
SSH connection
2023-06-03 16:14:36 +02:00
Fuxino 252617e4f2 Fix old backups counting 2023-06-03 16:09:34 +02:00
Fuxino 809545b172 Explicitly close paramiko connection 2023-06-03 15:56:24 +02:00
Fuxino b34627fe58 Improve readability 2023-06-03 15:44:31 +02:00
Fuxino cd558e8608 Merge branch 'nolink' into development 2023-06-02 20:12:53 +02:00
Fuxino ffbf8ece91 Remove last_backup link 2023-06-02 19:38:28 +02:00
Fuxino 78760bdda3 Merge branch 'master' into development 2023-06-02 18:38:54 +02:00
Fuxino 6c07c147ae Version bump 2023-06-02 17:04:53 +02:00
Fuxino 5ddd374350 Fix notification bug
Correctly handle exception when trying to display notification if
dbus-python is not available
2023-06-02 17:01:37 +02:00
Fuxino 3d3fbbcbd9 Add password authentication for SSH 2023-06-02 00:09:14 +02:00
Fuxino 4f3d83f458 Update manpage 2023-06-01 22:18:32 +02:00
Fuxino d48eaabbd3 Merge branch 'master' into development 2023-06-01 17:47:44 +02:00
Fuxino 525f381094 Remove PKGBUILD
Removed PKGBUILD since the packages is available in the AUR. Added
a note about AUR in README.md
2023-06-01 17:23:58 +02:00
Fuxino e1ba388296 Update version 2023-06-01 17:18:42 +02:00
Fuxino e84cf81b13 Add man page 2023-06-01 17:08:31 +02:00
Fuxino 7664fa1b33 Update README.md 2023-05-31 22:12:59 +02:00
Fuxino 98cb7f5822 Fix ssh authentication when running with sudo 2023-05-31 20:39:03 +02:00
Fuxino b957200deb Change missing hostkey policy 2023-05-31 19:30:31 +02:00
Fuxino 9e90d620e6 Merge branch 'master' into development 2023-05-31 19:21:11 +02:00
Fuxino 06620a4dba Fix bug when exclude pattern is None 2023-05-31 19:07:50 +02:00
Fuxino ba97b25e25 Add docstrings 2023-05-29 23:10:29 +02:00
Fuxino 335ad348e5 Update README.md 2023-05-29 21:56:58 +02:00
Fuxino df18e383ed Update dependencies 2023-05-29 19:02:05 +02:00
Fuxino 7eb71bc924 Add rsync compress option 2023-05-29 18:33:02 +02:00
Fuxino c25ef52393 Implement remove old backups from server 2023-05-29 17:57:12 +02:00
Fuxino 24a59bde2d Use ssh agent if available 2023-05-29 00:09:54 +02:00
Fuxino 88e6a9a141 Add incremental backups on server 2023-05-28 23:19:08 +02:00
Fuxino 38c090e257 Add basic remote backup functionality 2023-05-28 21:30:40 +02:00
Fuxino 0dd7b887f7 Update PKGBUILD to use release version 2023-05-28 11:07:03 +02:00
Fuxino 7684bc43b0 Add desktop notifications 2023-05-25 23:44:59 +02:00
Fuxino a07fce1b6c Version bump 2023-05-25 19:01:50 +02:00
Fuxino 11c1ab0952 Add options to remove old backups before copying files 2023-05-25 19:01:19 +02:00
Fuxino a42ade4f2b Version bump 2023-05-25 17:27:04 +02:00
Fuxino c6432c1350 Check rsync return code 2023-05-25 17:20:32 +02:00
Fuxino fa1d8f410e Remove old last_backup link after copying files 2023-05-25 17:10:38 +02:00
Fuxino 8b9087cdf6 Version bump 2023-05-11 20:21:00 +02:00
Fuxino 3c155e62a2 Version bump 2023-05-11 20:19:56 +02:00
Fuxino 5a4a26f9a7 Fix minor bugs and improve exception handling 2023-05-11 20:18:42 +02:00
Fuxino ca0e3d133f Fix entry_point in setup.cfg 2023-05-05 19:41:32 +02:00
Fuxino cc788735dd Fix README.md 2023-05-05 19:30:53 +02:00
Fuxino 631ffa85d3 Remove broken desktop notifications 2023-05-05 19:23:21 +02:00
Fuxino fe2d66c24c Remove data_files from setup.cfg 2023-05-05 19:12:41 +02:00
Fuxino 97419c30f9 Use setuptools to build the project 2023-05-05 19:03:23 +02:00
Fuxino c6871ac81a Bump PKGBUILD version 2023-05-04 23:42:55 +02:00
Fuxino 90120031e2 Update PKGBUILD 2023-05-04 23:21:12 +02:00
Fuxino d61ffa199a Use setuptools 2023-05-04 23:16:15 +02:00
Fuxino a4c4b88193 Fix PKGBUILD 2023-05-02 18:10:43 +02:00
Fuxino eb8bdde1fc Rename configuration file 2023-05-02 18:07:41 +02:00
Fuxino 5d17aaf03a Update dependencies in PKGBUILD 2023-04-30 22:06:30 +02:00
Fuxino d181d2970f Better handle missing parameters 2023-04-30 14:38:26 +02:00
Fuxino 84e6d58493 Handle dbus exceptions 2023-04-30 11:53:31 +02:00
Fuxino d2e982469b Log number of old backups removed 2023-04-30 11:41:37 +02:00
Fuxino 0dde6b8df9 Fix last_backup broken link detection 2023-04-30 11:32:35 +02:00
Fuxino e45ae1b1b6 Decrease log verbosity 2023-04-30 11:02:59 +02:00
Fuxino d1ccc33d0a Update gitignore 2023-04-30 10:41:51 +02:00
Fuxino 8b52115b4a Change journal log format 2023-04-30 10:40:18 +02:00
Fuxino c02fd658bc Use systemd journal for logging 2023-04-29 22:26:38 +02:00
Fuxino 7d0125344f Update install file 2023-04-29 21:53:06 +02:00
Fuxino 3f2e133eff Change default config path 2023-04-29 21:50:35 +02:00
Fuxino d2e03f89ca Add desktop notifications 2023-04-29 21:28:42 +02:00
Fuxino 92ecc95f72 Fix Arch Linux .install file 2023-04-15 22:16:50 +02:00
Fuxino 3e5e3cb066 Add timing 2023-04-15 21:53:16 +02:00
Fuxino bd74cf0e14 Fix PKGBUILD 2023-04-15 21:43:09 +02:00
Fuxino 1a251f61af Send rsync output to logger 2023-04-15 21:36:45 +02:00
Fuxino 661a5d4232 Add requirements.txt 2023-04-15 21:06:58 +02:00
Fuxino 642d807d61 Use destination if input is symlink 2023-04-15 21:01:01 +02:00
Fuxino b08b0474ac Refactor code 2023-04-15 19:49:33 +02:00
Fuxino b4dee0ccd2 Rename config file 2023-04-15 12:40:09 +02:00
Fuxino da07c602b5 Fix small bugs 2023-04-15 11:09:36 +02:00
Fuxino b4294a5792 Add .gitignore 2023-04-15 10:39:26 +02:00