copy files
-
-
geaves
Hat das Thema freigeschaltet. -
OMV is not a file manager app. It won't do what you want:
A gui explorer-like to move around files.
You can do that via command line with midnight commander but be ABSOLUTELY SURE of what you're doing or you will kill your system:
-
How do I copy all the content from sdc1+2 and sdd1+2 to sdb1?
Soma's solution is good for any kind of data you have on disk.
Another solution, if what you have on the old drives are shared folders, you can create new folders on the new drive and use rsync in the OMV GUI to make the copy.
-
-
They will be under /srv/dev-disk-by-something.
You can check what is the mount point on OMV Filesystems
-
Been through this recently be warned, the copy will take hours!
This is how I did it:
For each shared folder
- create a target shared folder on the new drive
- create a rsync job from shared folder on old diskt to shared folder on new disk, do not enable it, so time does not matter, but add extra option --delete
- run rsync job
- disable /remove access to shared folder (samba, nfs, docker container ...)
- run rsync job gain
- enable / recreate shares with shared folder on new disk
continue with next shared folder.
Do not forget docker containers. If you have moved the docker root to one on the old disks, this has to be handled seperatly. The easyest is to revreate the containers with the new pathes.
Prefere rsync over cp, because it keeps permissions and can rerun as often als you like. And do not use mv (move)
-
Prefere rsync over cp, because it keeps permissions
If you runcp -a, permissions will be kept also.
I use it for "cloning" my container config folders.
Got so used to it that don't use the rsync.
-
Got so used to rsync that I forgot about the -a flag
One develops habbits.
-
Hi Jbloc, I had the same question when I started using OMV.
To expand a bit on @Soma’s response, each filesystem is assigned a universally unique identifier (UUID). When mounted, the device information and UUID together form a path called the Mount Point. You can use that to identify and address that storage. An example would be something like this:
/srv/dev-disk-by-uuid-f188c8ad-74d3-443a-a23e-89711270367d
(Every disk will have a unique identifier.)
You can find this in the OMV web interface under Storage> File Systems. The information is not immediately displayed this way by default. To show it, click on the down arrow at the top right edge of a column heading. Select Columns A list of available information will appear. Tick the the Mount Point box, and that column will be added to the table view. In that Mount Point column, you will now see the full path you can use, to specify which disk/filesystem to act upon:
Note that the requirement to use the UUID is quite recent. So new that much of the documentation, guides and forum responses you may see for a while might still refer to Labels rather than UUIDs. It’s UUIDs now.
Hope this will be helpful to you.
(The bulk of this information is sourced from the Backup section of the OMV 5 New Users’ Guide, with thanks to the volunteers who prepared it.)
-
Thanks for helping. I used MC.
-
Just a note that rsync keeps permissions indeed, but in this particular case the data is copied from NTFS to EXT4, so no permissions will be transferred along anyway.
Glad that good old MC did the job.
-
Been through this recently be warned, the copy will take hours!
When I use MC to do a big copy job, I run it in a screen session via ssh, get the job started, disconnect the session, and go do something else. I can check on it anytime by reconnecting to the screen session.
-
Hi! I suggest to use Long Path Tool. It is very helpful in copying files.
-
There are many GUI copy/backup tools out there that can help you in your copy process with just a few steps , for example
Goodsync
Gs Richcopy 360
Teracopy
Syncback
please take a look
-
Они будут в /srv/dev-disk-by-something.
Why is that? Why not as usual mnt/?
-
Why is that? Why not as usual mnt/?
/mnt is used for temporarily mounted filesystems only. A good explanation can be found here.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!