parent
161364739c
commit
2b928bb9c2
@ -0,0 +1 @@
|
|||||||
|
{% calculate append = 'skip' %}
|
@ -0,0 +1 @@
|
|||||||
|
{% calculate path="/", name="etc", package="app-backup/rsnapshot" %}
|
@ -0,0 +1,29 @@
|
|||||||
|
{% calculate format="regex", multiline, source="/usr/share/doc/rsnapshot-" + pkg()|cut(0,"-") + "/rsnapshot.conf.default", mirror %}
|
||||||
|
<reg>^(snapshot_root\s+).*$</reg>
|
||||||
|
<text>\1/var/calculate/snapshots</text>
|
||||||
|
<reg>^#?(cmd_cp\s+).*$</reg>
|
||||||
|
<text>\1/bin/cp</text>
|
||||||
|
<reg>^#?(cmd_ssh\s+).*$</reg>
|
||||||
|
<text>\1/usr/bin/ssh</text>
|
||||||
|
<reg>^#?(cmd_du\s+).*$</reg>
|
||||||
|
<text>\1/usr/bin/du</text>
|
||||||
|
<reg>^#?(rsync_short_args\s+).*$</reg>
|
||||||
|
<text>\1-aAX</text>
|
||||||
|
<reg>^#?(rsync_long_args\s+).*$</reg>
|
||||||
|
<text>\1--delete --numeric-ids --delete-excluded</text>
|
||||||
|
<reg>^#?(one_fs).*$</reg>
|
||||||
|
<text>\1\t\t\t1</text>
|
||||||
|
<reg>^#?(include_file\s+).*$</reg>
|
||||||
|
<text>\1/etc/rsnapshot.d/rsnapshot.filter</text>
|
||||||
|
<reg>^#?(include_file\s+).*$</reg>
|
||||||
|
<text>\1/etc/rsnapshot.d/rsnapshot.filter</text>
|
||||||
|
<reg>^#?(link_dest).*$</reg>
|
||||||
|
<text>\1\t1</text>
|
||||||
|
<reg>^#?(sync_first).*$</reg>
|
||||||
|
<text>\1\t1</text>
|
||||||
|
<reg>^#?(use_lazy_deletes).*$</reg>
|
||||||
|
<text>\1\t1</text>
|
||||||
|
<reg>^(backup\s+)</reg>
|
||||||
|
<text>#\1</text>
|
||||||
|
<reg>\Z</reg>
|
||||||
|
<text>include_conf\t`/bin/cat /etc/rsnapshot.d/*.conf`\n</text>
|
@ -0,0 +1,3 @@
|
|||||||
|
# LOCALHOST
|
||||||
|
#backup / localhost/rootfs/
|
||||||
|
#backup /var/calculate localhost/calculate/
|
@ -0,0 +1,17 @@
|
|||||||
|
- /dev/*
|
||||||
|
- /lost+found
|
||||||
|
- /tmp/*
|
||||||
|
- /usr/portage/*
|
||||||
|
- /var/lib/layman/*
|
||||||
|
- /lxc/*/snaps
|
||||||
|
- /lxc/*/rootfs/dev/*
|
||||||
|
- /lxc/*/rootfs/tmp/*
|
||||||
|
- /lxc/*/rootfs/usr/portage/*
|
||||||
|
- /lxc/*/rootfs/var/lib/layman/*
|
||||||
|
- /lxc/*/rootfs/var/log/*
|
||||||
|
- /lxc/**/calculate/packages
|
||||||
|
- /lxc/**/remote/distfiles
|
||||||
|
- /packages
|
||||||
|
- /remote/distfiles
|
||||||
|
- /snapshots/*
|
||||||
|
- /var/calculate/snapshots/*
|
@ -0,0 +1 @@
|
|||||||
|
{% path="/var/calculate", chmod="0700" %}
|
Loading…
Reference in new issue