From: Jamie H. <ha...@de...> - 2003-02-11 04:39:59
|
Hi group, I'm trying to implement the newest version of flexbackup to backup my Solaris Machines to a linux machine. I've installed and configured it, but it's given me problems with every archive type. My preference would be tar since I'm backing up to a hard drive, not a tape drive, but zip would also work fine for me. I've included what I get when I try to backup a simple small directory on a remote Solaris machine. The error seems to be saying that tar doesn't have an -a flag, but I don't seem to see one being asked for in the command line, but then again this command is too complicated for me to fully understand. I'll also include my flexbackup.conf at the end of this message so you can see how I've got it configured. Any assistance would be greatly appreciated. Jamie [root@interpole flexbackup-1.0.1]# flexbackup -fs earth.web-hosting.com:/home2/harper flexbackup version 1.0.1 (http://flexbackup.sourceforge.net) /etc/flexbackup.conf syntax OK |------------------------------------------------------------ | Checking /bin/sh on this machine... bash2 | Checking shell on earth.web-hosting.com... ro...@ea...'s password: bash2 | Checking for required programs on host earth.web-hosting.com... ro...@ea...'s password: Ok |------------------------------------------------------------ | Doing level 0 backup of earth.web-hosting.com:/home2/harper using tar | Found directory index key 200302101949 |------------------------------------------------------------ | Backup of: earth.web-hosting.com:/home2/harper | Date of this level 0 backup: Mon Feb 10 20:25:03 2003 | Date of last level 0 backup: the epoch |------------------------------------------------------------ | ssh earth.web-hosting.com 'cd "/home2/harper" && find . -xdev -depth ! | -regex ".*/[Cc]ache/.*" ! -regex ".*~"$ -print0 | tar --create --null | --files-from=- --same-permissions --same-order --no-recursion --totals | --label "level 0 earth.web-hosting.com:/home2/harper Mon Feb 10 | 20:25:03 2003 tar from interpole.interpole.com" --verbose --sparse | --atime-preserve -R -b 20 --file - ; x=(${PIPESTATUS[@]}); i=0; while [ | $i -lt ${#x[@]} ]; do [ ${x[$i]} -eq 0 ] || exit ${x[$i]}; i=$(($i+1)); | done' | dd ibs=10k obs=10k conv=noerror | of="/opt/earth.web-hosting.com-home2-harper.0.tar" |------------------------------------------------------------ ro...@ea...'s password: tar: a: unknown option Usage: tar {txruc}[vfbFXhiBEelmopwnq[0-7]] [-k size] [tapefile] [blocksize] [exclude-file] [-I include-file] files ... 0+0 records in 0+0 records out ERROR from backup, exiting offending command(s): ssh earth.web-hosting.com 'cd "/home2/harper" && find . -xdev -depth ! -regex ".*/[Cc]ache/.*" ! -regex ".*~"$ -print0 | tar --create --null --files-from=- --same-permissions --same-order --no-recursion --totals --label "level 0 earth.web-hosting.com:/home2/harper Mon Feb 10 20:25:03 2003 tar from interpole.interpole.com" --verbose --sparse --atime-preserve -R -b 20 --file - ; x=(${PIPESTATUS[@]}); i=0; while [ $i -lt ${#x[@]} ]; do [ ${x[$i]} -eq 0 ] || exit ${x[$i]}; i=$(($i+1)); done' | dd ibs=10k obs=10k conv=noerror of="/opt/earth.web-hosting.com-home2-harper.0.tar" [root@interpole flexbackup-1.0.1]# --------------------------------------------------------------------------------------------------------------------------------------------------- # -*-Mode: perl-*- # ---------------------------------------------------------------------- # Flexbackup configuration file # # $Id: flexbackup.conf,v 1.64 2003/01/21 15:43:17 edwinh Exp $ # $Name: v1_0_1 $ # # ---------------------------------------------------------------------- # General configuration section # Archive type? afio, dump, tar, cpio, star, pax, zip $type = 'tar'; # List the directories you wish to dump when 'all' is given # Just a simple space-separated list # Remote filesystems should denoted as 'host:dir' # # Example: # $filesystems[0] = '/ /usr /home machine1:/usr machine2:/home'; # # The array index is a tape number. If you want an 'all' level 0 backup to # span multiple tapes, add more lines with different array indices. You will # be prompted for tape change in between. # $filesystems[0] = '/home'; # Compression $compress = 'false'; # one of false/gzip/bzip2/zip/compress/hardware $compr_level = '4'; # compression level (1-9) (for gzip/bzip2/zip) # Buffering / padding $buffer = 'false'; # 'false' or 'buffer', to use buffer program to help streaming $buffer_megs = '10'; # buffer memory size (in megabytes) $pad_blocks = 'true'; # true to pad blocks to blocksize (devices only, not used when # archiving to files) # Device to backup to - non-rewinding version please! # # Examples: # Linux SCSI: /dev/nst0 Linux IDE: /dev/nht0 # Linux ftape: /dev/nqft0 FreeBSD SCSI: /dev/nrsa0 # # If a directory, will archive to files in that directory rather than a device # If "host:/dev/tapedevice", will use remote tape drive via rsh/ssh # $device = '/opt'; # Block size (k) to use # Default is 10 for most things. Some tape drives need 32 or 64. # Set to '0' to disable all blocking $blksize = '10'; # True to use "variable" block size for the tape device (mt setblk 0) # If false, will use the $blksize parameter above. All non-mt commands # will still use $blksize regardless of this value $mt_var_blksize = 'true'; # Other global flags $remoteshell = 'ssh'; # command for remote shell (rsh/ssh/ssh2) $remoteuser = ''; # if non-null, username for remote shell $verbose = 'true'; # echo each file? $sparse = 'true'; # handle sparse files? $indexes = 'true'; # false to turn off all table-of-contents support # If backing up to files, use static filenames - no date stamp # (same level backup of same directory will overwrite old backups) $staticfiles = 'true'; # True to try and preserve file access times during backup, if the selected # archive program can do so. Note that if this is true, -cnewer checks (file # permission/status changes only, not content) are turned off when deciding # which files to archive on the local system. $atime_preserve = 'true'; # Span across filesytems? ("dump" will ignore this option) # Set to "false" (don't) , "local" (all but nfs/smbfs), or "all" (everything) $traverse_fs = 'false'; # Exclude files that match these *regular expressions* (not shell wildcards) # from the backups (no affect on 'dump' archives). You can list more than one, # just keep incrementing the index in the brackets for each. Also, strip off # leading directories (the filesystem specs above or the "-fs" flag). # Matches paths, not filenames, so put .* on the front/back as needed. # Comment these out to exclude nothing. $exclude_expr[0] = '.*/[Cc]ache/.*'; $exclude_expr[1] = '.*~$'; # If true (default), level zero "all" assumes you want to erase and use # a new tape. If false, level zero "all" appends like all other backups. # If not doing 'all', backups won't erase the tape first, unless you use # "-erase" on the commandline. $erase_tape_all_level_zero = 'true'; # Set this to "true" to make erase operations just call "mt rewind" - not # "mt rewind' followed by "mt erase". (For some tape drives, erase takes # hours rather than seconds or is otherwise undesirable) $erase_rewind_only = 'true'; # ---------------------------------------------------------------------- # Log/stamp files, path for temporary files $logdir = "/var/log/flexbackup"; # directory for log files $stampdir = "/var/lib/flexbackup"; # directory for backup timestamps $index = "$stampdir/index"; # DB filename for tape indexes $comp_log = "false"; # compress log? false/gzip/bzip2/compress/zip $staticlogs = "false"; # static log filenames w/ no date stamp $prefix = ""; # log files will start with this prefix $sprefix = ""; # stamp files will start with this prefix $tmpdir = "/tmp"; # used for temporary refdate files, etc $keyfile = "00-index-key"; # filename for keyfile if archiving to dir # ---------------------------------------------------------------------- # Parameters for 'afio' only # File extensions that should not be compressed (seperate with spaces) $afio_nocompress_types = 'mp3 MP3 Z z gz gif zip ZIP lha jpeg jpg JPG taz tgz deb rpm bz2'; # True to show block numbers $afio_echo_block = 'false'; # Files less than this size (kilobytes) won't be compressed $afio_compress_threshold = '3'; # Maximum amount of memory (megabytes) to use for temporary storage of # compression results. If a compressed file is bigger than this, compression # will have to run twice on the file (see manpage). $afio_compress_cache_size = '2'; # ---------------------------------------------------------------------- # Parameters for 'tar' only # True to show record numbers $tar_echo_record_num = 'true'; # ---------------------------------------------------------------------- # Parameters for 'cpio' only # Format of cpio archive $cpio_format = 'newc'; # ---------------------------------------------------------------------- # Parameters for 'dump' only # Estimated tape size (in kilobytes). This number doesn't really do much # but help 'dump' get size estimates if set to zero uses 'dump -a' $dump_length = '0'; # True to use /etc/dumpdates (could mess things up if you dump subdirectories # of mount points). False to use flexbackup's timestamps. $dump_use_dumpdates = 'false'; # ---------------------------------------------------------------------- # Parameters for 'star' only # Use fifo (buffering)? (you probably want to set $buffer=false above if so) $star_fifo = 'true'; # Handle ACLs? $star_acl = 'true'; # Format of star archive $star_format = 'exustar'; # True to show block numbers $star_echo_block_num = 'false'; # ---------------------------------------------------------------------- # Parameters for 'pax' only # Format of pax archive $pax_format = 'ustar'; # ---------------------------------------------------------------------- # Parameters for 'zip' only # File extensions that should not be compressed (seperate with spaces) $zip_nocompress_types = 'mp3 MP3 Z z gz gif zip ZIP lha jpeg jpg JPG taz tgz deb rpm bz2'; # ---------------------------------------------------------------------- # Paths to commands. Default will look for them in $PATH. Set if # you want to set them explicitly. You can use full paths or just # change command names. # # Example: If GNU tar is called "gtar" on your system: # $path{'tar'} = 'gtar'; # # Or can be used to "sudo" certain commands. Examples: # $path{'find'} = 'sudo find'; # $path{'dump'} = 'sudo -u backup dump'; # ###################################################################### # Leave '1;' on the the next line - for perl 'require' 1; |