You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d0634b5
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+92-19Lines changed: 92 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,19 +70,53 @@ release.
70
70
-[ ] Run as none root user.
71
71
72
72
## Usage
73
+
First set up snapper to take snapshots of one of your subvolumes, see this [page](https://wiki.archlinux.org/index.php/Snapper) on how to do it for Arch Linux.
73
74
74
-
First set up snapper to take snapshots of one of your subvolumes, see
75
-
this [page](https://wiki.archlinux.org/index.php/Snapper) on how to do
76
-
it for Arch Linux.
75
+
### Specify source and destination
77
76
78
-
For example if you want to back up you snapshots from your home
79
-
subvolumes to an external hdd mounted at /mnt/backup, run
77
+
If you want to back up your snapper snapshots for your home configuration, where the snapshots located in `/home/.snapshots`, to an external hdd mounted at `/mmt/backup`.
78
+
79
+
```bash
80
+
$ baksnapper /home/.snapshots /mnt/backup/home
81
+
```
82
+
83
+
This will send the last snapshot of home to `/mnt/backup/home/<snapshotnr>'.
Or specify that in the Config file using PRIVATE_KEY.
175
246
176
247
## Config file
177
248
@@ -188,26 +259,28 @@ For boolean parameters YES, yes, yes and 1 are interpret as on/true and
188
259
anything else as off/false.
189
260
190
261
The supported options are:
191
-
* CONFIG: The snapper config to backup. Same as --config.
192
-
* PATH: Destination to backup to. For remote backup use
262
+
* CONFIG (deprecated): The snapper config to backup. Same as --config. (deprecated)
263
+
* PATH (deprecated): Destination to backup to. For remote backup use
193
264
hostname:/backup/to. Where 'hostname' is the name of the
194
265
server and '/backup/to' is the path to the location it should
195
266
write the backups to on the remote host.
267
+
* SOURCE: Source of the snapshots directory to backup. Same as first positional argument and `--source`. For remote backup use `[user@]hostname:/backup/from`. Where `user` is the username — it is optional and if left out till will use the current user. And `hostname` is the name of the server and `/backup/from` is the path to the location where the snapshots are located.
268
+
* DEST: Destination for the backup. Same as second positional argument and `--dest`. For remote backup use `[user@]hostname:/backup/to`. Where `user` is the username — it is optional and if left out till will use the current user. And `hostname` is the name of the server and `/backup/to` is the path to the location where it should write the backups to on the remote host.
196
269
* PRUNE: Prune the backups by deleting snapshots that isn't in the source directory.
197
270
Same as -p, --prune
198
271
* ALL: Send all snapshots in the soruce directory. Same as -a, --all
199
272
* VERBOSE: Verbose print out, same as -v, --verbose.
200
273
* DAEMON: Name of the baksnapper daemon, default is baksnapperd. Same as --daemon
201
-
* TYPE: Define if it should push the backup or pull. Default is push.
274
+
* TYPE (deprecated): Define if it should push the backup or pull. Default is push.
202
275
Pull can be used to transfer a backup from a remote server to
203
276
the current machine.
204
277
* PRIVATE_KEY: The private key file to use when connecting to a remote
205
278
server. Same as --private-key.
206
279
207
280
**Note:** Command line options will take precendence over config file options.
208
281
**Note:** No variable expansion is supported in the config files, for
209
-
example you cannot for example type ~/backup, instead you need to
210
-
expand ~ yourself i.e /home/bob/backup if $USER = bob.
282
+
example you cannot for example type `~/backup`, instead you need to
283
+
expand ~ yourself i.e /home/bob/backup if `$USER` expands to `bob`.
0 commit comments