[Dirvish] dirvish-expire says 'Invalid expiration time'

Daniel Fischer daniel.fischer at materna.de
Fri Nov 3 03:05:05 PST 2006


Am Freitag, 3. November 2006 11:48 schrieb Dave Howorth:
> Daniel Fischer wrote:
> > Hi,
> >
> > I am running dirvish on one central file server to remote backup other
> > servers.
> > The setup was working without any problems for about one month.
> > Since October 28th I am getting the following messages if I run
> > dirvish-expire:
> >
> > anderson:/srv/backup/snapshot/morpheus/morpheus-root # dirvish-expire
>
> ...
>
> > /srv/backup/snapshot/neobe/neobe-root/20061103-04:00: invalid expiration
> > time
> >
> > I assume there is a bug in the date parsing function?
>
> Why would you assume that?
>
> I believe the message is telling you that it thinks there is no
> expiration time in the summary files.
>
> Could you post the contents of a summary file from before Oct 28 and one
> from after Oct 28?

summary of anderson on 20061022-04:00:
----------------------------------------------
client: morpheus.bv.bui.materna.com
tree: /
rsh: ssh
Server: anderson
Bank: /srv/backup/snapshot/morpheus
vault: morpheus-root
branch: default
Image: 20061022-04:00
Reference: 20061015-04:00
Image-now: 2006-10-22 04:00:00
Expire: +3 months == 2007-01-22 04:00:00
Expire-rule: *   *     *   *         1    +3 months
exclude:
	/dev/pts/**
	/dev/shm/**
	/proc/**
	/sys/**
	/usr/src/**/*.o
	/var/cache/apt/archives/*.deb
	lost+found/
	*~
	.nfs*
SET permissions devices numeric-ids stats 
UNSET checksum init sparse whole-file xdev zxfer 


ACTION: 
rsync -vrltH --delete -pgo --stats -D --numeric-ids --exclude-from=/srv/backup/snapshot/morpheus/morpheus-root/20061022-04:00/exclude --link-dest=/srv/backup/snapshot/morpheus/morpheus-root/20061015-04:00/tree 
morpheus.bv.bui.materna.com:/ /srv/backup/snapshot/morpheus/morpheus-root/20061022-04:00/tree
Backup-begin: 2006-10-22 04:04:00
Backup-complete: 2006-10-22 04:06:37
Status: success
=========================

summary of anderson on 20061028-04:00:
----------------------------------------------
client: morpheus.bv.bui.materna.com
tree: /
rsh: ssh
Server: anderson
Bank: /srv/backup/snapshot/morpheus
vault: morpheus-root
branch: default
Image: 20061028-04:00
Reference: 20061022-04:00
Image-now: 2006-10-28 04:00:00
Expire: ARRAY(0x82e6fbc) == 1970-01-01 01:00:00
exclude:
	/dev/pts/**
	/dev/shm/**
	/proc/**
	/sys/**
	/usr/src/**/*.o
	/var/cache/apt/archives/*.deb
	lost+found/
	*~
	.nfs*
SET permissions devices numeric-ids stats 
UNSET checksum init sparse whole-file xdev zxfer 


ACTION: 
rsync -vrltH --delete -pgo --stats -D --numeric-ids --exclude-from=/srv/backup/snapshot/morpheus/morpheus-root/20061028-04:00/exclude --link-dest=/srv/backup/snapshot/morpheus/morpheus-root/20061022-04:00/tree 
morpheus.bv.bui.materna.com:/ /srv/backup/snapshot/morpheus/morpheus-root/20061028-04:00/tree
Backup-begin: 2006-10-28 04:04:10
Backup-complete: 2006-10-28 04:07:11
Status: success
=========================

summary of anderson on 20061102-04:00:
----------------------------------------------
client: morpheus.bv.bui.materna.com
tree: /
rsh: ssh
Server: anderson
Bank: /srv/backup/snapshot/morpheus
vault: morpheus-root
branch: default
Image: 20061102-04:00
Reference: 20061101-04:00
Image-now: 2006-11-02 04:00:00
Expire: ARRAY(0x82e6fbc) == 1970-01-01 01:00:00
exclude:
	/dev/pts/**
	/dev/shm/**
	/proc/**
	/sys/**
	/usr/src/**/*.o
	/var/cache/apt/archives/*.deb
	lost+found/
	*~
	.nfs*
SET permissions devices numeric-ids stats 
UNSET checksum init sparse whole-file xdev zxfer 


ACTION: 
rsync -vrltH --delete -pgo --stats -D --numeric-ids --exclude-from=/srv/backup/snapshot/morpheus/morpheus-root/20061102-04:00/exclude --link-dest=/srv/backup/snapshot/morpheus/morpheus-root/20061101-04:00/tree 
morpheus.bv.bui.materna.com:/ /srv/backup/snapshot/morpheus/morpheus-root/20061102-04:00/tree
Backup-begin: 2006-11-02 04:00:04
Backup-complete: 2006-11-02 04:02:37
Status: success
=========================

master.conf
----------------------------------------------
## Example dirvish master configuration file:

bank:
		/srv/backup/snapshot/morpheus
		/srv/backup/snapshot/neobe

image-default:	%Y%m%d-%H:%M
image-perm:	700
meta-perm:	600
index:		gzip
log:		gzip
exclude:
		/dev/pts/**
                /dev/shm/**
                /proc/**
                /sys/**
		/usr/src/**/*.o
		/var/cache/apt/archives/*.deb
		lost+found/
		*~
		.nfs*
Runall:
#		root	22:00
		morpheus-root	04:00
		neobe-root	04:00
expire-default:
		+15 days
expire-rule:
#		MIN HR    DOM MON       DOW  STRFTIME_FMT
		*   *     *   *         1    +3 months
#	*   *     1-7 *         1    +1 year
#	*   *     1-7 1,4,7,10  1

	*   10-20 *   *         *    +15 days
#	*   *     *   *         2-7  +15 days
=========================

Looks like it only does work on the first day of week since the 28th of 
October.
If it is not the first day of week it prints to the summary:
"Expire: ARRAY(0x82e6fbc) == 1970-01-01 01:00:00" ??


Cheerio, Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.dirvish.org/pipermail/dirvish/attachments/20061103/ff098fa8/attachment.bin


More information about the Dirvish mailing list