roles/common: Add task to copy tarsnaprc

One less thing to do manually after server provisioning, and there is
nothing sensitive in here anyways.
This commit is contained in:
Alan Orth 2018-05-20 12:51:02 +03:00
parent c29d37c159
commit 131420be17
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
2 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,47 @@
### Recommended options
# Tarsnap cache directory
cachedir /root/.tarsnap-cache
# Tarsnap key file
keyfile /root/.tarsnap.key
# Don't archive files which have the nodump flag set
nodump
# Print statistics when creating or deleting archives
print-stats
# Create a checkpoint once per GB of uploaded data.
checkpoint-bytes 1G
### Other options, not applicable to most systems
# Aggressive network behaviour: Use multiple TCP connections when
# writing archives. Use of this option is recommended only in
# cases where TCP congestion control is known to be the limiting
# factor in upload performance.
#aggressive-networking
# Exclude files and directories matching specified patterns
#exclude
# Include only files and directories matching specified patterns
#include
# Attempt to reduce tarsnap memory consumption. This option
# will slow down the process of creating archives, but may help
# on systems where the average size of files being backed up is
# less than 1 MB.
#lowmem
# Try even harder to reduce tarsnap memory consumption. This can
# significantly slow down tarsnap, but reduces its memory usage
# by an additional factor of 2 beyond what the lowmem option does.
#verylowmem
# Snapshot time. Use this option if you are backing up files
# from a filesystem snapshot rather than from a "live" filesystem.
#snaptime <file>
humanize-numbers

View File

@ -9,4 +9,7 @@
- name: Install tarsnap
apt: pkg=tarsnap update_cache=yes
- name: Copy tarsnaprc
copy: src=tarsnaprc dest=/root/.tarsnaprc owner=root group=root mode=0600
# vim: set sw=2 ts=2: