Merge pull request #536 from YunoHost/enh-nobackupfile

[enh] Don't backp user home with .nobackup file
This commit is contained in:
Bram 2018-09-07 05:00:00 +02:00 committed by GitHub
commit 5598829b42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,6 +12,8 @@ backup_dir="${1}/data/home"
# Backup user home
for f in $(find /home/* -type d -prune | awk -F/ '{print $NF}'); do
if [[ ! "$f" =~ ^yunohost|lost\+found ]]; then
ynh_backup "/home/$f" "${backup_dir}/$f" 1
if [ ! -e "/home/\$f/.nobackup" ]; then
ynh_backup "/home/\$f" "${backup_dir}/\$f" 1
fi
fi
done