When running a script such as bkup (page 682) to back up files on a remote system, how could you rotate (rename) files on a remote system?

What will be an ideal response?

You could set up a crontab entry on the remote system that rotated files
sometime before each backup. This solution requires the systems’ clocks to
be in relatively close synchronization. It also does not handle the problems
that come up if either the crontab entry or the backup fails to run.
Alternatively, you could rotate the files from the local system using ssh to
execute commands on the remote system. The following command would
work with the rsync command in the bkup script, or could be included in
the bkup script:
$ ssh guava 'rm -r bu.2; mv bu.1 bu.2; mv bu.0 bu.1'

Computer Science & Information Technology

You might also like to view...

A(n) ____________________ is small group of selected users who represent a larger group of users who participate in an interview when interviewing every user is impractical.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

To add a primary key after creating a table, you can use the ____________________ clause of the ALTER TABLE command.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology