Re: shifting files through directories
From: Lew Pitcher (Lew.Pitcher_at_td.com)
Date: 11/17/05
- Next message: Jim Showalter: "Re: shifting files through directories"
- Previous message: Jim Showalter: "shifting files through directories"
- In reply to: Jim Showalter: "shifting files through directories"
- Next in thread: Jim Showalter: "Re: shifting files through directories"
- Reply: Jim Showalter: "Re: shifting files through directories"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 17 Nov 2005 15:07:08 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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.
[snip]
>
> 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?
Something like
rm 3
mv 2 3
mv 1 2
mkdir 1
but in script form?
- --
Lew Pitcher
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)
iD8DBQFDfOLsagVFX4UWr64RAqzoAJ9RbM/YsJzkaOaDr14qLoqoRdp9TQCgxKgS
d/r2Z2e4wDZ6iHWMyAWBh8E=
=lz4L
-----END PGP SIGNATURE-----
- Next message: Jim Showalter: "Re: shifting files through directories"
- Previous message: Jim Showalter: "shifting files through directories"
- In reply to: Jim Showalter: "shifting files through directories"
- Next in thread: Jim Showalter: "Re: shifting files through directories"
- Reply: Jim Showalter: "Re: shifting files through directories"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|