mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
10 lines
275 B
Text
10 lines
275 B
Text
backup_dir="$1/data/home"
|
|
sudo mkdir -p $backup_dir
|
|
|
|
. /usr/share/yunohost/apps/helpers
|
|
|
|
for f in $(find /home/* -type d -prune | awk -F/ '{print $NF}'); do
|
|
if [[ ! "$f" =~ ^yunohost|lost\+found ]]; then
|
|
ynh_bind_or_cp "/home/$f" "${backup_dir}/$f" 1
|
|
fi
|
|
done
|