data_sync

command
v1.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2023 License: BSD-2-Clause, ISC Imports: 11 Imported by: 0

README

data_sync

This is a tool I wrote primarily to sync my home directory to a backup
drive plugged into my laptop. This system is provisioned by Ansible,
and the goal is to be able to just copy my home directory back in the
event of a failure without having lost a great deal of work or to wait
for ansible to finish installing the right backup software. Specifically,
I use a Framework laptop with the 1TB storage module, encrypted with
LUKS, and run this twice daily (timed to correspond with my commute,
though that's not really necessary). It started off as a shell script,
then I decided to just write it as a program.

Usage: data_sync [-d path] [-l level] [-m path] [-nqsv]
                                  [-t path]
        -d path         path to sync source directory
                        (default "~")
        -l level        log level to output (default "INFO"). Valid log
                        levels are DEBUG, INFO, NOTICE, WARNING, ERR,
                        CRIT, ALERT, EMERG. The default is INFO.
        -m path         path to sync mount directory
                        (default "/media/$USER/$(hostname -s)_data")
        -n              dry-run mode: only check paths and print files to
                        exclude
        -q              suppress console output
        -s              suppress syslog output
        -t path         path to sync target directory
                        (default "/media/$USER/$(hostname -s)_data/$USER")
        -v              verbose rsync output

data_sync rsyncs the tree at the sync source directory (-d) to the sync target
directory (-t); it checks the mount directory (-m) exists; the sync target
target directory must exist on the mount directory.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL