Browse Source

Добавлены шаблоны для app-backup/rsnapshot

master
parent
commit
2b928bb9c2
  1. 1
      merge/app-backup/.calculate_directory
  2. 1
      merge/app-backup/rsnapshot/.calculate_directory
  3. 29
      merge/app-backup/rsnapshot/rsnapshot.conf
  4. 3
      merge/app-backup/rsnapshot/rsnapshot.d/localhost.conf
  5. 17
      merge/app-backup/rsnapshot/rsnapshot.d/rsnapshot.filter
  6. 1
      merge/app-backup/rsnapshot/snapshots/.calculate_directory

1
merge/app-backup/.calculate_directory

@ -0,0 +1 @@
{% calculate append = 'skip' %}

1
merge/app-backup/rsnapshot/.calculate_directory

@ -0,0 +1 @@
{% calculate path="/", name="etc", package="app-backup/rsnapshot" %}

29
merge/app-backup/rsnapshot/rsnapshot.conf

@ -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>

3
merge/app-backup/rsnapshot/rsnapshot.d/localhost.conf

@ -0,0 +1,3 @@
# LOCALHOST
#backup / localhost/rootfs/
#backup /var/calculate localhost/calculate/

17
merge/app-backup/rsnapshot/rsnapshot.d/rsnapshot.filter

@ -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/*

1
merge/app-backup/rsnapshot/snapshots/.calculate_directory

@ -0,0 +1 @@
{% path="/var/calculate", chmod="0700" %}
Loading…
Cancel
Save