restore-domain but does not delete the old files

6 posts / 0 new
Last post
#1 Mon, 01/17/2011 - 09:12
pinguinolinux

restore-domain but does not delete the old files

Please restore-domain but does not delete the old files you no longer use. How can I delete all the old files too? The script is run

virtualmin restore-domain --source ssh://user:password@xxx.xxx.xxx.xxx/BackUP/dominio.tar.gz --all-domains --all-features

Mon, 01/17/2011 - 10:40
andreychek

Hmm, what old files are you seeing that it should be deleting?

Thanks!

-Eric

Mon, 01/17/2011 - 10:55
pinguinolinux

Should delete the files inside public_html

Mon, 01/17/2011 - 11:01
andreychek

Howdy,

The restore wouldn't actually delete anything from the users home directory.

If your hoping it would delete any files not present in the backup -- the only way to accomplish that would be to first manually delete any files you don't want.

Or, you could always delete the entire Virtual Server before performing a restore, since the restore would re-create the Virtual server.

However, a restore won't delete any existing files, as it assumes you want them there :-)

-Eric

Tue, 01/18/2011 - 02:56
pinguinolinux

I solved it by writing the script rm-fr / home / * / public_html/*

Tue, 03/10/2015 - 07:59
peter atef tawfik

is there is a way to retrieve my domain with it's mails

Topic locked