Compare commits
40 Commits
Author | SHA1 | Date | |
---|---|---|---|
7b4a3feb0e | |||
7977b1d827 | |||
cda638cad9 | |||
066d5da4da | |||
7a871fd4a6 | |||
7f3b7a0c01 | |||
1821fe453d | |||
dfe0a33315 | |||
6690a5fe0a | |||
6cf4d49bc3 | |||
03f49c2b82 | |||
369227027a | |||
7f53303cda | |||
341ad1f818 | |||
165787f819 | |||
4b0ea6a411 | |||
74c347ec6a | |||
85bb2d7290 | |||
b11d69c957 | |||
b979b6196f | |||
9d66f59113 | |||
54321e7ec1 | |||
3622d365f1 | |||
4a0d4abc54 | |||
6b70a22b52 | |||
58aec3f911 | |||
9106924993 | |||
1d3e08e804 | |||
fca18717fb | |||
785c9e4c96 | |||
0399ffde87 | |||
8bb53d8a55 | |||
af6c37555c | |||
8613bb8fce | |||
f5b31f1dbb | |||
99a3bca3ba | |||
ee2e1af737 | |||
5f51ff9756 | |||
933e3176a7 | |||
9eb1046351 |
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
#
|
||||
.idea
|
||||
|
14
README.md
14
README.md
@ -1,4 +1,7 @@
|
||||
# Mikes Backup
|
||||
|
||||
*** Currently Archived; Read Section Below ***
|
||||
|
||||
Easily run both *full* and *differential* backups with rsync, to a local folder or an SSH server.
|
||||
|
||||
This script is really just a wrapper around rsync's beautiful functionality. It presents a simplified interface for one very narrow use case: Simplifying the process of running daily backups:
|
||||
@ -6,6 +9,10 @@ This script is really just a wrapper around rsync's beautiful functionality. It
|
||||
* Otherwise, it will automatically choose a *full* or *differential* backup type, based on whether it detects an existing *full* backup folder at the backup destination
|
||||
* For *differential* backups, it automatically generates a folder based on today's date and time, making it easier to store many differentials without the need to manually fuss with anything
|
||||
|
||||
## Archive Status
|
||||
|
||||
I've decided to discontinue development of this project because [restic](https://restic.net/) is so much more robust, useful, and cool. *Mike's Backup* still works as of this writing (2022-07-20), but I've moved all my personal backups over to restic.
|
||||
|
||||
## Requirements
|
||||
* rsync
|
||||
* python3
|
||||
@ -14,13 +21,18 @@ This script is really just a wrapper around rsync's beautiful functionality. It
|
||||
## Command Line Arguments
|
||||
* ```--full``` Forces the script to run a *full* backup
|
||||
* ```--differential``` Forces the script to run a *differential* backup
|
||||
* ```--diff``` Same as ```---differential```
|
||||
* ```--no-incremental``` Always force differentials to link back to the *full* backup, and not the most recent *differential*
|
||||
* ```--log-dir <directory>``` Let's you set the log output directory
|
||||
* ```--log-name``` Let's you set a name to the log file
|
||||
* ```--source-dir <directory>``` Specifies the local source directory
|
||||
* ```--include <directory>``` Specifies another local source directory to include in the backup
|
||||
* ```--source-mountpoint <directory>``` Make sure a local mountpoint is mounted before continuing
|
||||
* ```--destination-dir <directory>``` Specifies the backup destination directory
|
||||
* ```--exclude <dir>``` Specifies a source directory to exclude (can be passed multiple times)
|
||||
* ```--remote-host <hostname>``` Specifies the remote host, if your backup destination is an SSH server
|
||||
* ```--remote-user <username>``` Specifies the remote username to use, if your backup destination is an SSH server
|
||||
* ```--ssh-key <path to key>``` Specifies the local SSH key to use for authentication, if your backup destination is an SSH server
|
||||
* ```--exclude <dir>``` Specifies a source directory to exclude (can be passed multiple times)
|
||||
|
||||
Note that ```--remote-host```, ```--remote-user```, and ```--ssh-key``` are only needed if your backup destination is a remote SSH server. You may omit all three if the destination is a locally mounted folder.
|
||||
|
||||
|
720
mikes-backup
720
mikes-backup
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user