mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #536 from YunoHost/enh-nobackupfile
[enh] Don't backp user home with .nobackup file
This commit is contained in:
commit
5598829b42
1 changed files with 3 additions and 1 deletions
|
@ -12,6 +12,8 @@ backup_dir="${1}/data/home"
|
||||||
# Backup user home
|
# Backup user home
|
||||||
for f in $(find /home/* -type d -prune | awk -F/ '{print $NF}'); do
|
for f in $(find /home/* -type d -prune | awk -F/ '{print $NF}'); do
|
||||||
if [[ ! "$f" =~ ^yunohost|lost\+found ]]; then
|
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
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue