Koozali.org: home of the SME Server

exclude ibays from the built in backup util

Offline k0r54

  • ****
  • 111
  • +0/-0
exclude ibays from the built in backup util
« on: March 08, 2007, 02:33:06 AM »
Hi,

Does anyway know how to exclude the contents of the ibays in the desktop backup built into sme?

I want the ibays to be recreated in the restore but not the contents of them. It means i can perform a backup to desktop for all the settings and then use dar2 to do the contents of the ibays.

Thanks
k0r54

Offline haymann

  • *
  • 212
  • +0/-0
Re: exclude ibays from the built in backup util
« Reply #1 on: March 08, 2007, 02:59:50 PM »
Quote from: "k0r54"
Hi,

Does anyway know how to exclude the contents of the ibays in the desktop backup built into sme?
In Ray Mitchell's post on Feb. 13 he suggests the following:
Code: [Select]
mv /home/e-smith/files/ibays /tmp He also suggests the same thing if your user files are too large. I moved my ibays to /tmp last night and then did a backup to desktop. The panel in server-manager said that the backup was going to be too large (it was reporting 18GB), but the files were actually well under 1GB. I am not sure why the size was mis-reported on the panel... Anyway the backup went fine and only took a few minutes. I haven't tried restoring from that backup as I was just testing the procedure, but it seemed to work great.
Ryan

Offline k0r54

  • ****
  • 111
  • +0/-0
exclude ibays from the built in backup util
« Reply #2 on: March 08, 2007, 07:52:19 PM »
Hi,

Thanks, I will test that when i get home. do u just move them back after the backup then? Does it not effect it at all?

Thanks
k0r54

Offline haymann

  • *
  • 212
  • +0/-0
exclude ibays from the built in backup util
« Reply #3 on: March 08, 2007, 08:29:07 PM »
Yes, move them back when you are done. The /tmp directory is not backed up so you can "hide" things there until the backup is complete. I would read his post that I referenced above for more details, I just copied a small bit of it.

Also, dar2 backup contrib by dmay (search the contribs board) will let you exclude files and directories when you preform a backup.

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
exclude ibays from the built in backup util
« Reply #4 on: March 08, 2007, 08:29:44 PM »
Quote
Does it not effect it at all?

A webpage doesn't mind where you put it as long as it has access to mysql (if you have a cms sistem). And the backup takes care of the rest.

This is a safe and simple solution.
"It should just work" if it doesn't report it. Thanks!

Offline slords

  • *****
  • 235
  • +3/-0
Re: exclude ibays from the built in backup util
« Reply #5 on: March 08, 2007, 10:37:08 PM »
Quote from: "haymann"
Code: [Select]
mv /home/e-smith/files/ibays /tmp

I wouldn't do this ever!  There is a program run nighly that removes any files from /tmp that are older then 30 days.  If you have files in your ibays that are older then 30 days and you leave the directory there overnight then all those files will be deleted.  YOU HAVE BEEN WARNED!!!
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs,
and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." -- Rich Cook

Offline haymann

  • *
  • 212
  • +0/-0
exclude ibays from the built in backup util
« Reply #6 on: March 08, 2007, 10:49:42 PM »
To fully quote Ray
Quote
mv /home/e-smith/files/ibays /tmp
mv /home/e-smith/files/users /tmp
perform backup to desktop using server manager panel
mv /tmp/ibays /home/e-smith/files/ibays
mv /tmp/users /home/e-smith/files/users
restore to another machine
manually copy data from .../users & .../ibays to new server
You can see that he never intended for the files to stay there longer than it took for the backup to run. You couldn't access your files from there anyway could you? So even if you wanted them to stay there, no one would be able to access webpages, etc... right?

Looking at my /tmp directory shows some stuff that hasn't changed since 7/9/2006. But I still won't leave anything that I want there. Thank you for the warning, and for the information, I didn't know the files were purged occasionally.
Ryan

Edit: Shad, I misunderstood your post at first... I see now that that you are saying that files older than 30 days are at risk if left as little as over night. When I first ready your post I thought you were saying not to leave them for 30 days. Big difference!! I am warned, thanks!

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
exclude ibays from the built in backup util
« Reply #7 on: March 08, 2007, 11:20:48 PM »
haymann i didn't look at the specefied dir. I have a second /temp dir and i put data there. So make a temp dir and then transfer data.
"It should just work" if it doesn't report it. Thanks!

Offline k0r54

  • ****
  • 111
  • +0/-0
exclude ibays from the built in backup util
« Reply #8 on: March 12, 2007, 04:14:37 PM »
Hey,

Ok backup was done great! Well its quite a chaw every night moving files and so on, can this be done as a script or anything and how would i go about it?

Also I have been using dar but when I had to restore the backup from there i had these problems.

http://forums.contribs.org/index.php?topic=36051.0

My ibays also messed up and i could not access them so had to recreate them and my domain was not found by the computers. I never had that when i done it through the sme backup util.

Any help with either getting dar up properly or a script for sme would be great.

Thanks
k0r54