Synology_app_mover icon indicating copy to clipboard operation
Synology_app_mover copied to clipboard

[Enhancement Request] Bulk move support from $source_volume to $target_volume

Open DanBurkhardt opened this issue 1 year ago • 11 comments

Reading the docs, it seems like you've done some dependency mapping to ensure things are re-linked properly (haven't looked at the scripts though, just assuming).

In any case, since this tool has methods in place to move applications safely and re-link deps, I think it would be a great enhancement to be able to bulk-move applications, where all applications from /$source_volume are moved to /$target_volume in one go.

ex:

sudo -s ./syno_app_mover.sh --bulk-move --source /volume5 -- target /volume3

DanBurkhardt avatar Jun 28 '24 08:06 DanBurkhardt

A lot of work has gone into this script to make sure that extra folders, symlinks and settings are moved and edited to suit the new volume location.

I added an "all" menu option for backing up and restoring. Adding an 'all' menu option for moving would be easy enough to add. You're the 2nd person in 2 weeks that have asked for it.

007revad avatar Jun 28 '24 13:06 007revad

Yeah clearly a lot has! I started with an app I didn't care about getting hosed and it worked perfectly, scaled up from that and eventually moved everything.

To confirm-- we're good to delete the volume after the move right? No data tendrils should be left (understanding some apps need you to move the db, like drive sync)

DanBurkhardt avatar Jun 30 '24 16:06 DanBurkhardt

I recommend checking your apps still work as expected, without the old volume, before deleting the old volume:

  1. Shut down the NAS.
  2. Remove the drives that contain the old volume.
  3. Boot the NAS.
  4. Mute the beep.
  5. Check none of your packages show Broken or Repair in storage manager.
  6. Check each app still has it's settings and data.

Assuming all your apps are okay:

  1. Shut down the NAS.
  2. Reinstall the drives that contain the old volume.
  3. Boot the NAS.
  4. Delete the volume.

Of course all of the above assumes that there is only 1 volume on those drives.

007revad avatar Jun 30 '24 21:06 007revad

I'm the third one. I upgraded from Synology DS220j (2 bay) to DS923+ (4 bay) and want to migrate everything from ext4 to btrfs, so I created a new btrfs volume with 2 new drives and I have to move everything there from the old ext4 volume. I'll do it one by one now. Beside your project there is only one solution: backup, reinstall/reconfigure, and restore everything, which not optimal if I have 2 working disk and 2 new disk in a 4 bay NAS to make the transition. Thank you for your work.

presidento avatar Sep 10 '24 11:09 presidento

+1 for moving all packages from one to another volume.

gerstemann avatar Sep 25 '24 06:09 gerstemann

+1 also please when you have time this would be fantastic

joelhinch avatar Oct 06 '24 23:10 joelhinch

Another +1 for a move all

marcelrv avatar Jan 20 '25 20:01 marcelrv

+1

filol avatar Feb 11 '25 10:02 filol

+1

herzkerl avatar Feb 25 '25 20:02 herzkerl

+1 My situation is 20 apps, all on Volume 2, I would like a switch to say, Automove Vol2 > Vol1.

EDIT - I moved all my apps and it was surprisingly quick. Automating this task, may not be a great suggestion as for certain apps there is follow-up tasks "Download station", resetting the download location folder.

Very good Script! Im super happy it all worked and now i can delete volume2!! You have saved me a tonne of headache deleting and setting up all the apps! Thank you

FoldZero avatar Mar 10 '25 14:03 FoldZero

I forgot to switch my discs to 4k, so i moved all data to another nas left 10gb, and wanted to do a nas backup it took a day and still not finished

i decided to degrade raid 6 to "raid 5" and converted 1 disk, got the failure, reinstalled now i use your script to move all packages...sadly 1 by 1 to the "new 4k" disk and even i have to do all manually 1 by 1 its so much faster to get all data moved without further unknown hours, and tb of saved data..from a voume with just 10gb left

Please implement the move all ...the next one would not need to click every app by hand over and over ;)

Thanks a lot for your much appreciated work

soon i need to move all back ;)

ChaosEmpire avatar May 23 '25 23:05 ChaosEmpire