Large user account backup & restore

DanielM

Verified User
Joined
Oct 30, 2019
Messages
5
I have a problem with a large user account that has some 250GB. The system backup is performed correctly, there are no errors, but it cannot be unpacked because the file is supposedly damaged, the operation is performed until a certain point. Is there any trick to such large user accounts?
 
Is there any trick to such large user accounts?
It can take massive time, consume a lot of resource (because you also have to make the backup some place) and can run into issues indeed.

My suggestion is to define where the motherload of those 250 GB is, probably website, and maybe it's best to use a user kind of backup instead of admin backup/transfer.
This way you can choose to backup all mail and database(s).
Create the same account on the new server, and start user restore from within there. That should go fairly fast.

When done, use rsync to transfer al the website files over. This way you don't have issues with (supposedly or not) damaged archives or unpacking stopping at a certain point or whatever.

Maybe someone else has a better idea, but I think this is the way to go.
 
there are few methods:
1. if account have few big domains - move them to separate accounts, so you will have few smaller accounts.
2. if there only one domain - check what exactly consume most space and exclude it from backup and just tar.gz it separately from DA backup.
3. of if it have some temp-dirs with lot of non important files - you can exclude this dirs from backup.
 
If you don't know how to exclude from backup.
You can set allow_backup_exclude_path=1 in /usr/local/directadmin/conf/directadmin.conf and restart directadmin if you have it set to 0 earlier some time.
The default is already 1.

Then create a file called /home/username/.backup_exclude_paths (mind the dot in front).
Then in this file you can place paths or files to exclude, use without /home/username/ (relative to this dir).
To exclude for example the directory /home/username/domains/domain.com/public_html/somedir then put in the file without starting slash:
domains/domain.com/public_html/somedir
and so on, same with files.
 
Back
Top