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

In the statement b=a*c/d+e which is the first operation that is performed when this C++ statement is executed?

A. b= B. d+e C. a*c D. c/d

Computer Science & Information Technology

How does a document type definition help to ensure that an X M L document contains all necessary elements?

What will be an ideal response?

Computer Science & Information Technology

When you filter using AutoFilter, list arrows are displayed at the top of the columns.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Describe how common the ANT technology is today and explain how to implement the ANT technology in Apple and Android devices.

What will be an ideal response?

Computer Science & Information Technology