]> git.sur5r.net Git - bacula/bacula/blob - bacula/examples/backup-acls.txt
Fix race condition between setip and the access to CLIENT::address()
[bacula/bacula] / bacula / examples / backup-acls.txt
1 From: Volker Sauer <volker@volker-sauer.de>
2 To: =?ISO-8859-1?Q?Daniel_Ch=E9nard?= <dchenard@croesus.com>
3 CC: Bacula users <bacula-users@lists.sourceforge.net>
4 Subject: Re: [Bacula-users] Bacula and the ACL
5 Date: Tue, 20 Jan 2004 23:32:52 +0100
6
7 You could use a script like that to dump the acls to a file which you 
8 could restore with "setfacl --restore=<acl-file>" in case of a restore.
9
10
11 #!/bin/bash
12
13 BACKUP_DIRS="/foo /bar"
14
15 STORE_ACL=/root/acl-backup
16 umask 077
17
18 for i in $BACKUP_DIRS; do
19     cd $i
20     /usr/bin/getfacl -R --skip-base . >$STORE_ACL/${i//\//_}
21 done
22