Re: [Zope] Removing old FileStorage backups from repozo

2005-06-27 Thread Jens Vagelpohl


On 27 Jun 2005, at 14:00, Felix Ulrich-Oltean wrote:

Can I just go in and delete files older than X days from the backup
directory, or will this upset repozo, which apparently keeps info
about its backup files in the .dat file?


You can safely delete all files older than your last *full backup*.

jens

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Removing old FileStorage backups from repozo

2005-06-27 Thread Tim Peters
[Felix Ulrich-Oltean]
 I'm using the repozo.py script to back up some large FileStorages, as
 outlined in:

 http://www.zope.org/Wikis/ZODB/FileStorageBackup

 I need to clear out old backups regularly, as there are several
 storages which are packed every night, and so there are lots of ~2G
 backups files around for every day.

Are you doing full backups every time?  It's surprising if you get 2GB
of new files every day when doing incremental backups.

 Can I just go in and delete files older than X days from the backup
 directory, or will this upset repozo, which apparently keeps info
 about its backup files in the .dat file?

As Jens said, it should be safe to delete anything older than the most
recent full backup.  Please try the patch in this collector issue:

http://www.zope.org/Collectors/Zope/1501

and add a comment there about whether you're happy with it?  That adds
a new option to repozo to automate deleting old files.  The chances of
that patch going in would increase if someone reports they use it and
are happy with it.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Removing old FileStorage backups from repozo

2005-06-27 Thread Felix Ulrich-Oltean
On Mon, Jun 27, 2005 at 11:08:56AM -0400, Tim Peters wrote:
 [Felix Ulrich-Oltean]
  I need to clear out old backups regularly, as there are several
  storages which are packed every night, and so there are lots of ~2G
  backups files around for every day.
 
 Are you doing full backups every time?  It's surprising if you get 2GB
 of new files every day when doing incremental backups.

I used to do it weekly, but some of the storages grow to over 4G, so 
I've been doing it nightly, which keeps it around 1.8G - 2.5G during the 
course of the day.

 As Jens said, it should be safe to delete anything older than the most
 recent full backup.  Please try the patch in this collector issue:
 
 http://www.zope.org/Collectors/Zope/1501
 

OK, I'll give it a try.

Felix.



___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Removing old FileStorage backups from repozo

2005-06-27 Thread Tim Peters
[Eddie Butcher]
 What would be most useful is the ability to specify the number of backup
 files *kept*.

Please add comments to the Collector issue instead?  On a mailing
list. they're forgotten forever an hour after they're posted 0.1
wink:

http://www.zope.org/Collectors/Zope/1501
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )