Re: shifting files through directories

From: Lew Pitcher (Lew.Pitcher_at_td.com)
Date: 11/17/05


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-----



Relevant Pages

  • Re: 2 questions and 2 gifts
    ... This is the only valid argument for NTFS, ... bothered setting up a decent backup schedule. ... All you lose is what passes as "graphic design" on the ...
    (microsoft.public.windowsxp.general)
  • Re: I Know it is still early in the season
    ... the majors an no one ever gave a starting job" to justify ... Except that sometimes the backup is behind a really good player ... career because he was backing up three good outfielders. ...
    (alt.sports.baseball.bos-redsox)
  • Re: [fw-wiz] Mis-attribution - Re: How automate firewall tests
    ... Hash: SHA1 ... On Mon, 13 Nov 2006, Chris Blask wrote: ... SSN - [SNIP] ...
    (Firewall-Wizards)
  • Re: Windows/Macro Language Info?
    ... >my shop is likewise comfortable with our backup procedures. ... >> named HD95COPY for images to one disk and the WinZip method described ... incrementals take about a half-hour to write and maybe twenty minutes to ...
    (comp.lang.cobol)
  • Re: My Leopard impressions
    ... That would explain a lot about your opinions of Vista, ... the menu bar is stupid in Leopard, but it's a far cry from the UI ... It's a problem when the backup drive is too small. ...
    (comp.sys.mac.advocacy)