Re: shifting files through directories
From: Lew Pitcher (Lew.Pitcher_at_td.com)
Date: Thu, 17 Nov 2005 15:07:08 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Jim Showalter wrote:
> I have four directories named 0, 1, 2 and 3 to hold three days'
> backups of the "My Documents" folder on a Windows system. Each
> new backup results in a 21GB tar archive, broken into 5 chunks
> and written to directory 0. My backup script then calls 'mvarc',
> who's job is to first delete all the files in directory 3 (the
> oldest backup), then, in turn, move the files from directory 2
> to 3, 1 to 2 and 0 to 1.
> This works Ok, but I would like to make mvarc more generic, so that:
A dumb question for you...
Instead of moving files around, why don't you just rename directories?
mv 2 3
mv 1 2
but in script form?
IT Specialist, Enterprise Data Systems,
Enterprise Technology Solutions, TD Bank Financial Group
(Opinions expressed are my own, not my employers')
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
-----END PGP SIGNATURE-----