HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   backup temp file fill / using tmp (http://www.howtoforge.com/forums/showthread.php?t=62532)

maumar 13th July 2013 19:17

backup temp file fill / using tmp
 
The issue is this:
nightly, backup uses /tmp (sadly /tmp is on root fs) to zip files.
This fullfill root fs.

My question is:
is there a config option of zip program to set a different temp dir by /tmp?
can I set it server wide?

many thnx

maumar 23rd July 2013 09:08

-b path
--temp-path path
Use the specified path for the temporary zip archive. For example:

zip -b /tmp stuff *


how can I reconfigure ispconfig backup to use -b option?

till 23rd July 2013 09:10

you will have to edit the cron_daily.php file.

maumar 23rd July 2013 23:12

many thnx
for whom interested

Code:

/usr/local/ispconfig/server/cron_daily.php
line 792-793
change
 zip -b /tmp
into
  zip -b /var/backup/tmp



All times are GMT +2. The time now is 12:21.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.