| Author |
Unix Shell Script to archive file with time bound - random access file
|
ravi v kumar
Ranch Hand
Joined: Dec 14, 2004
Posts: 56
|
|
Hi All,
I need shell script or UNIX command to archive a file in UNIX OS. this file should be archived on a weekly basis.
and also this file is randomly accessed by different applications.
Can you please provide solution for this.
Thanks in Advance!!
-Ravi
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14475
|
|
There are several Unix archive utilities. Most common is tar, but there's also a Linux ZIP, and cpio.
I do nightly backups using tar. The actual scheduling is done by the cron utility.
The vixie cron popular on Linux is set up with a set of script folders, including /etc/cron.daily and /etc/cron.weekly, where you can place executable scripts and they will run automatically. If you prefer a different scheduling arrangement, you can add entries to the /etc/crontab file.
Also, for non-system usage, each user account can have its own crontab. The format is slightly different from the system crontab.
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
 |
|
|
subject: Unix Shell Script to archive file with time bound - random access file
|
|
|