scheduled backup to another directory

4 posts / 0 new
Last post
#1 Thu, 07/17/2008 - 06:07
compre

scheduled backup to another directory

Hello,

is it possible to backup files from a scheduled backup to another directory? Not to /tmp/.webmin/... My Server got not enough free memory on the system, but the /home partition is seperate and big enough for the backup.

Or is it possible to do this with a symlink?! I tried this but it didn`t work for me.

thanks bastian

Sun, 06/07/2009 - 07:26
andreychek

Howdy,

Mmm. Well, looking in the Virtualmin code, the part that determines what temp dir to use during the backups looks like this:

[code:1]
local $tempbase = $gconfig{'tempdir_'.$module_name} ||
$gconfig{'tempdir'} ||
"/tmp/.webmin";
[/code:1]

So what does that mean? I haven't had a chance to test this yet, but I suspect that means you could edit this file:

/etc/webmin/backup-config/config

And that you could add in either:

tempdir_backup-config = /path/to/another/dir

or failing that (the module name may be incorrect), you could always try:

tempdir = /path/to/another/dir

You'll of course want to test that out before relying on it for your backups ;-)
-Eric

Sun, 06/07/2009 - 07:26
andreychek

Howdy,

Mmm. Well, looking in the Virtualmin code, the part that determines what temp dir to use during the backups looks like this:

[code:1]
local $tempbase = $gconfig{'tempdir_'.$module_name} ||
$gconfig{'tempdir'} ||
"/tmp/.webmin";
[/code:1]

So what does that mean? I haven't had a chance to test this yet, but I suspect that means you could edit this file:

/etc/webmin/backup-config/config

And that you could add in either:

tempdir_backup-config = /path/to/another/dir

or failing that (the module name may be incorrect), you could always try:

tempdir = /path/to/another/dir

You'll of course want to test that out before relying on it for your backups ;-)
-Eric

Thu, 07/17/2008 - 13:39
sgrayban

You can set the tmp directory under "Webmin -> Webmin Configurations -> Advance Settings"

Topic locked