|
From: Jamie C. <jca...@we...> - 2006-11-21 23:39:24
|
On 21/Nov/2006 15:35 Joaquim Homrighausen wrote .. > > Performing backup of /sites/mydomain.com to /back/%Y-%m-%d/mydomain.com > .. > > tar: /back/2006-11-22/mydomain.com: Cannot open: No such file or directory > tar: Error is not recoverable: exiting now > tar: Removing leading `/' from member names > > It would be nice if Webmin could check the path/destination before it starts > the backup and create any necessary directories. I'd like to have a structure > that looks like: > > /back/2006-11-22/files.. > /back/2006-11-23/files.. > > and so on, so I don't get *everything* in one directory, or manually have > to create the structure. You can use the pre-backup command for this - something like : mkdir -p /backup/`date '+%Y-%m-%d'` - Jamie |