No description
Find a file
2023-06-08 16:47:31 +02:00
tarback Shift by OPTIND-1 after parsing, instead of during. 2023-06-08 01:13:26 +02:00
tests Fix docker tests to use actual volumes. 2023-06-07 23:54:52 +02:00
Makefile Fix makefile installing main script in plugins directory. 2023-06-08 00:38:14 +02:00
README.md Add readme. 2023-06-07 23:05:18 +02:00
tarback.sh Add config parsing. 2023-06-08 16:47:31 +02:00
test.sh Add ssh-docker test, fix filename escaping when using ssh. 2023-06-07 21:53:14 +02:00

tarback

Create a tar archive from remote resources.

This is more or less equivalent to ssh host tar files | xz | split output-file and its reverse.

Two plugins are available:

  • ssh handles all the ssh command and filename escaping necessary
  • docker instead of backing up a remote volume, back up a docker volume

usage

tarback -p ssh,docker -s 'ssh $user@$host' create "$remote_volume_name" "$local_tar_archive"

Create a split tar archive of the remote volume, with the extensions part{a-z,a-z}.

tarback -p ssh,docker -s 'ssh $user@$host' restore "$local_tar_archive" "$remote_volume_name"

Restore the backup to the remote docker volume.