sav

Package: WA2L/edrc 1.5.57
Section: General Commands (1)
Updated: 10 November 2014
Index Return to Main Contents

 

NAME

sav - Make Backup Copy

 

SYNOPSIS

edrc/bin/sav -h

sav [ -q ] file...

sav [ -q ] { -d | -D subdir } file...

 

AVAILABILITY

WA2L/edrc

 

DESCRIPTION

The sav utility is used by mkuser (for example) to make a backup copy of one or more files. Without options, the backup file will be named file.$TODAY and stored in the same directory as the original. With a -d or -D subdir option, the backup file will be stored in a subdirectory.

Saves of files located in special operating system configuration or state directories are always done into a .$TODAY/ directory to ensure proper system functionality. See section FILES for a complete list of those directories.

 

OPTIONS

-q
Quiet mode, does not give any warnings to standard output.

-d
For each file, copy it to .$TODAY/file, where TODAY is today's date in the form YYYYMMDD. If the directory does not exist, it is created.

-D subdir
For each file, file copy it to subdir.$TODAY/file, where TODAY is today's date in the form YYYYMMDD. If the directory does not exist, it is created. (This option is used by mkuser.

 

ENVIRONMENT

$TZ
timezone setting.

 

EXIT STATUS

0
no error

4
usage displayed

8
could not create subdir or command interrupted

 

FILES

Files located in the following operating system configuration or state directories are always saved into the .$TODAY/ directory as if sav would be invoked using the -d option:

/etc/*.d/, /etc/*/*.d/, /etc/*/*/*.d, /etc/default/
as links to the rc scripts in /etc/init.d and configuration of rc scripts, as seen on HPUX, Linux and Solaris.

/sbin/*.d/
as links to the rc scripts in /etc/init.d, as seen on HPUX.

/var/spool/at/
defined at jobs, as seen on Linux.

/var/spool/cron/atjobs/
defined at jobs, as seen on HPUX and Solaris.

/var/spool/cron/
defined crontabs, as seen on Linux.

/var/spool/cron/crontabs/
defined crontabs, as seen on HPUX and Solaris.

*/man/man*/, */man/*/man*/
manual pages directories.

*/lib/syspoll/protocols/*
protocol plugins of syspoll(1).

 

EXAMPLES

-

 

SEE ALSO

edrcintro(1), at(1), cron(1m), crontab(1m), mkuser(1), name(1), timezone(3), vsav(1)

 

NOTES

Parts of this manpage were extracted from the documentation of the SFI-Director and modified to fit to the WA2L/edrc package. See http://sfidirector.sourceforge.net for more information about the SFI-Director.

 

BUGS

-

 

AUTHOR

sav was developed by Peter Stevens, SFI and integrated into WA2L/edrc by Christian Walther. Send suggestions and bug reports to wa2l@users.sourceforge.net . 

 

COPYRIGHT

Copyright © 2015 Christian Walther

This is free software; see edrc/doc/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


 

Index

NAME
SYNOPSIS
AVAILABILITY
DESCRIPTION
OPTIONS
ENVIRONMENT
EXIT STATUS
FILES
EXAMPLES
SEE ALSO
NOTES
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html using the manual pages.
Time: 00:14:22 GMT, March 08, 2025