Thanks for found quotation marks I don't know why this script working properly on: ubuntu server 17.10 artful aardvark but on 18.04 "Bionic Beaver" have problem...
And when I leave an empty line without a comment, I get this error:
root@mines:~# sh ./backup.sh
: not found: 2: ./backup.sh:
Can you check that the script has no funny characters in it?
Can you also check that every command you use (mysql, mysqldump, ncftpput etc) are installed? It may be that if this is a new installation not all the utilities you use in this script may be installed by default.
I'm not sure if this is the place to ask this question but I have a script on an IBM RS6000 that has quit working. I can manually run a backup using SMIT and it appears okay, but not sure about the script.
----------code------------
#!/bin/ksh
#set -x
echo backup beginning
date
find... (7 Replies)
Hi,
My SCO Unixware 7.1.1 box is setup to run an EOD backup script, which is as follows:
----------------------------------------------------------------------
start End-of-day
compress $BASE TO /home/compdir
write /home/compdir to DATTAPE
end
... (0 Replies)
Hello folks.
Good Day!
i want to backup /var/www directory backup to another system daily basis incremental backup and weekly full backup. Directory name where it should automatically created like 2010-04-20 i mean via script. Can some one help? (7 Replies)
Hi,
I need to write a script that will capture the 8th character on each line (alphanumeric /meta chars) to the 16th character and send to an output file. Any ideas?
R,
D. (3 Replies)
Hi Everyone,
we are running rsync with --backup mode, Are there any rsync options to remove backup folders on successful deployment?
Thanks in adv. (0 Replies)
Hi all
i am struggling in creating a restore of env files while doing applications clone.
the first file i created for copying the important configurations file
which is running perfect
now for reverting the changes i mean when i am restoring these files to its original places
i have to do... (7 Replies)
Hello everyone,
I have 2 questions :
1) I have a backup shell script, let's call it backup.sh, that is called every hour as a cron job.
As a matter of fact a backup could last more than one hour.
It mounts a NAS and then do some rsync on important directories, so really I don't want to... (2 Replies)
HI all, im new to shell scripting. need your guidence for my script. i wrote one script and is attached here
Im explaining the requirement of script.
AIM: Shell script to run automatically as per scheduled and backup few network devices configurations. Script will contain a set of commands... (4 Replies)
Hello All,
I need immediate help in creating shell script to call archivebkup.ksh script when archive file system capacity reaches threshold value or 60%
Need to identify the unique file system that reaches threshold value.
ex:
capacity
... (4 Replies)
I have write the following script, its execution i got following error:
!/bin/sh
#
#
dy='date +%d%b%y'
hn="ECTMPROD12"
bk='/home/backup'
sb=$bk'/'$hn
#
#
cm_d01='tar -czf /home/backup/'$hn'_'$dy'_ofhome.tar.gz /home/oracle/ofhome'
#
#
echo "***** start time of ECTMPROD12 backup full"... (3 Replies)
Discussion started by: rizwan.shaukat
3 Replies
LEARN ABOUT MOJAVE
vgcfgbackup
VGCFGBACKUP(8) System Manager's Manual VGCFGBACKUP(8)NAME
vgcfgbackup - backup volume group descriptor area
SYNOPSIS
vgcfgbackup [-d|--debug] [-f|--file filename] [-h|--help] [--ignorelockingfailure] [-P|--partial] [-v|--verbose] [VolumeGroupName...]
DESCRIPTION
vgcfgbackup allows you to backup the metadata of your volume groups. If you don't name any volume groups on the command line, all of them
will be backed up.
In a default installation, each volume group gets backed up into a separate file bearing the name of the volume group in the directory
/etc/lvm/backup. You can write the backup to an alternative file using -f. In this case if you are backing up more than one volume group
the filename is treated as a template, and %s gets replaced by the volume group name.
NB. This DOESN'T backup user/system data in logical volume(s)! Backup /etc/lvm regularly too.
OPTIONS
See lvm for common options.
SEE ALSO lvm(8), vgcfgrestore(8)Sistina Software UK LVM TOOLS 2.02.95(2) (2012-03-06) VGCFGBACKUP(8)