Answer the question
In order to leave comments, you need to log in
How to back up a large folder while maintaining ownership and rights (Windows)?
Dear colleagues, I ask for help, I'm blunting the second day.
There is a W2003 server distributing the folder to one hundred users of the domain. In the folder about 1M files, 1 terabyte. In connection with the upcoming expansion of the LUN “on the fly”, there was a natural desire to make a file-by-file backup. The storage is QNAP with a place distributed via iSCSI, it is hooked up and formatted. I want a simple one - to make a copy from "A" to "B", while maintaining the owner and all existing rights to files and folders. Requires the ability to synchronize, because. the content is constantly changing by users, and subsequent backups should only drive the difference.
Tried:
- Far Manager - does not save the owner (all files belong to the one who copies). Well, there will be no synchronization. The rights are copied correctly.
- ViceVersa - refuses to copy rights.
- GoodSync, SuperFlexible - either the rights are not copied, or they are copied but in the wrong order (Windows swears at them).
Reluctance to contact DFS (it will blunt mercilessly on a terabyte folder). Ordinary backups to monolithic files are inconvenient (the hour is uneven, this iSCSI partition will have to be quickly issued to users).
There seems to be enough rights in Windows. Where to dig?
Answer the question
In order to leave comments, you need to log in
Have you tried running regular ntbackup at all?
does a great job, judging by some of my backup/restore tasks in the office.
But the archive will also open on 2k3 / XP, in the seven and on 2k8 another archiving system.
antonvn, really liked your question!
Moreover, I tried a bunch of different ways, and found out that xcopy /o WORKS, probably
because the registry fix was previously applied from here support.microsoft.com/kb/310316
which is ForceCopyAclwithFile :)
here are the logs, I work with the COMP server (OS Win2003), under the user user, with administrator rights.
C:\test>dir /Q
Volume in drive C has no label.
Volume Serial Number is XXXX-XXXX
Directory of C:\test
06/21/2012 23:22 COMP\user.
06/21/2012 23:22 BUILTIN\Administrators…
06/21/2012 23:22 1 COMP\dmitriy test.txt
C:\test>md d:\test
C:\test>d:
D:\>dir /Q test
Volume in drive D is install
Volume Serial Number is 7846-2FFA
Directory of D:\test
06/21/2012 23:24 COMP\user.
06/21/2012 11:24 PM BUILTIN\Administrators…
is the owner of the folder, as I see.
D:\>xcopy /oc:\test\test.txt d:\test\
C:\test\test.txt
1 File(s) copied
D:\test>dir /Q
Volume in drive D is install
Volume Serial Number is 7846-2FFA
Directory of D:\test
06/21/2012 23:25 COMP\user.
06/21/2012 23:25 BUILTIN\Administrators…
06/21/2012 23:22 1 COMP\dmitriy test.txt
owner copied successfully!
but for comparison WITHOUT /o
D:\test>xcopy c:\test\test.txt d:\test2\
C:\test\test.txt
1 File(s) copied
D:\test>dir /Q d:\test2\
Volume in drive D is install
Volume Serial Number is 7846-2FFA
Directory of d:\test2 06/21/2012
23:27 COMP\user.
06/21/2012 23:27 BUILTIN\Administrators…
06/21/2012 23:22 1 COMP\user test.txt
Thanks again for an interesting and useful question!
Instructions: Transferring file storage while maintaining the directory structure, NTFS rights structure, and system sharing settings to another hard drive
NTFS
file system
Task: Transferring file storage while maintaining the directory structure, NTFS rights structure, and system sharing settings to another hard drive
OS: w2k3
Conditions: The file storage is located on one system partition
Perform a full backup of the partition or disk you are going to migrate.
Do you already have a full backup?
Algorithm:
0. Install Acronis Disk Director (reboot if necessary)
1. Blocking ports for file and printer sharing in the Windows Firewall (a precautionary measure against possible attempts to work with files from the network)
2. Disk management \ source disk \ source partition \ remember partition letter \ delete partition letter
3. Disk management \ disk\remove all partitions (all optional). The transfer was carried out to a free disk, it is possible to “populate” the target partition to the free space of the target disk, which already has partitions.
4. Acronis Disc Director \ Source disk (we are guided by the number of the disk and its volume) \ context menu (right-click) \ Copy \ select the target disk or free space on the target disk \ Apply
5. Assign Disk Management \ target disk \ target partition \ drive letter that you remembered in step 2 (everything will be picked up after assigning a letter, if not, reboot)
Result: file structure, NTFS permission structure, sharing rules are transferred to a new disk or to the partition of the new disk without changes Storages
with
a length of file names of more than 260 characters are successfully transferred . As for synchronization, I would look in the direction of cwrsync, but in 30 minutes I didn’t manage to make the permissions move, the user lists move, but there is no permission, I tested it when synchronizing local folders.
Another version of the monolithic file is imagex (included in the Windows AIK).
try this one more . I wrote, if something is not enough I can add.
This is exactly what I'm doing.
You need to expand the disks in the storage (RAID 10), otherwise the volume of 5Tb is not enough, you need 10Tb. And for this, it is necessary to migrate all the data somewhere, with the preservation of the entire structure (the structure is one ball on the file server) and reliability.
At first I decided to copy all the data (several Tb) over the weekend to the backup storage. But this is unrealistic, because of the huge number of files, overmillions, and also small ones. With a gigabit network, the speed still drops to 2-4Mb / s.
I decided that I would create vmdk (vmware structure) files on the backup storage and connect them already as containers to the desired file server. And I will share using DFS to save the entire structure.
And slowly, on weekends, and at night, I transfer folders (300-600Gb each) and connect them to DFS, and users do not notice the difference, well, except for the shortcut icon. I copy using Total Commander, with the "copy NTFS permishin" checkbox.
Thus, as soon as I migrate all the files to the backup storage, and expand the working storage, I will already copy the entire vmdk files and upload them to the new storage. In the future, there will be no such wild problems, with copying a huge amount of data through the file system, but I will migrate entire vmdk disks inside the storage. For a maximum, for some time, you will have to disable some folder, while copying the vmdk file.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question