mirror of
https://github.com/kevinveenbirkenbach/linux-image-manager.git
synced 2024-11-12 18:51:04 +01:00
Added backup option
This commit is contained in:
parent
df11df9f25
commit
7b583ef0dd
@ -18,7 +18,7 @@ for folder in "${directories[@]}"; do
|
||||
else
|
||||
if [ -d "$cloud_directory" ]
|
||||
then
|
||||
mv -v "$home_directory/"* "$cloud_directory/" &&
|
||||
mv --backup -v "$home_directory/"* "$cloud_directory/" &&
|
||||
rmdir -v "$home_directory" &&
|
||||
ln -vs "$cloud_directory" "$home_directory" &&
|
||||
echo "Folder $home_directory is now syncronized with cloud." || exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user