mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-10 15:12:01 -03:30
ncp-restore: Add command for merging data directory with backup
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
This commit is contained in:
parent
71f8a2ef81
commit
72d35fbb99
@ -61,7 +61,7 @@ then
|
||||
target="$NCDIR/data"
|
||||
[[ -d "$target" ]] && {
|
||||
target="$NCDIR/.data_$(date -I)"
|
||||
echo "DATA CONFLICT! Your old '$NCDIR/data' directory can be found in '$target' after the restore script is done. The new '$NCDIR/data' directory will be restored from the backup."
|
||||
echo "DATA CONFLICT! Your old '$NCDIR/data' directory can be found in '$target' after the restore script is done. The new '$NCDIR/data' directory will be restored from the backup. You can manually merge these directories with this command (run nc-fix-permissions and nc-scan afterwards): cp -rn '$target/'* '$target/'.[!.]* '$NCDIR/data/'"
|
||||
}
|
||||
echo "Restoring old '$NCDIR/data' to '$target'..."
|
||||
mv -T "$DATA_BKP_DIR" "$target"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user