These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for scheduled backup to another directory on the new forum.
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
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
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
You can set the tmp directory under "Webmin -> Webmin Configurations -> Advance Settings"