[KLUG Members] LAN backup solutions, anyone?
Dirk H Bartley
bartleyd2 at chartermi.net
Mon May 23 08:55:14 EDT 2005
On Mon, 2005-05-23 at 08:37 -0400, Adam Tauno Williams wrote:
> > To accomplish the backups of linux machies without the tape drive, I use
> > rsync there as well.
>
> Does rsync include file permissions and ownership?
permissions and ownerships, yes. acl's no. So therefore yet another
hack. See bash code segment below.
homedir="/shared"
DIRLIST=$(ls ${homedir} | grep -v printer24 | grep -v dfs)
rm -f ${homedir}/aclrestore-*
cd ${homedir}
for dir in ${DIRLIST}; do
if [ -d ${homedir}/${dir} ]; then
echo Createing aclresotre file ${homedir}/aclrestore-${dir} for\
${homedir}/${dir}
/usr/bin/getfacl --skip-base -R ${dir} > \
${homedir}/aclrestore-${dir}
/usr/bin/getfacl -R ${dir} > ${homedir}/aclrestore-wbase-${dir}
fi
done
Dirk
More information about the Members
mailing list