Deleted user after backup via ssh ???

jasne

Verified User
Joined
Sep 28, 2011
Messages
52
Hello,

I've just discovered that after run "/usr/local/directadmin/directadmin admin-backup --destination=/home --user=userA"
the backup was created but also the userA was deleted ! Is it normal behavior ? I'm sure that i didn't run any other command
Perhaps destination path "/home" were cause ?
 
Hello,

Yes, that's the reason. DirectAdmin creates a folder for a user /home/userA to gather all required data and the it removes the folder as soon as all data is gzipped.

You might do it this way:

Code:
/usr/local/directadmin/directadmin admin-backup --destination=/home/tmp --user=userA


@DirectAdmin Support Could you probably add an extra check to prevent users from setting --destination to /home/
 
that's right ! it's a bug. It should check if folder exist before creating
 
@jasne
it exists "/home", but it not user friendly function. It be like real programming job to execute command ( no validate checking important Dir ).
 
Maybe as a safety to prevent possible damage to system and loss of data, a check should be added to not allow any paths that match any system locations that could possibly cause an issue (/home, /home2, any mail location, user temp folder ok, must not be in root of user but sub directory ok, not in any system sub directory ie: /usr /etc /var /boot /dev /sbin etc...).
 
Back
Top