10-21-2013
Quote:
Originally Posted by
zinn
I have taken your points and added this to my script, how could implement a way of asking the user if they want to overwrite the file after they have seen the echoed message "already exists"
thanks
How about setting up a function to prompt the user, similar to my post in this thread:
https://www.unix.com/shell-programmin...not-exist.html
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hope I have posted this in the correct forum. I'm trying to recover some Oracle files from tape to setup an offsite recovery system. These files are nightly backdumps tar to tape.
I have recovered rootvg and vg01 from the weekends full backup, now to restore these nightly files I discovered I... (1 Reply)
Discussion started by: Chrisp
1 Replies
2. Shell Programming and Scripting
Hello,
I have the following script to restore file and grep information. However, once it restore file, it showing a lot useless information and different to check which file have the statement "John price $200". Can I not show any information while running script. It only show..when found the... (1 Reply)
Discussion started by: happyv
1 Replies
3. AIX
Hi all,
I am still working on my mksysb restore.
My latest issue is during an alt_disk_install from tape I got the following error after all the data had been restored.
0505-143 alt_disk_install: Unable to match mksysb level 5.2.0 with any
available boot images. Please correct this... (0 Replies)
Discussion started by: pobman
0 Replies
4. Shell Programming and Scripting
Hello all:
I need found script to save and restore file permissions and owner:group... this is for backup my server...
I have one problem in my server and file permissions and owner:group, mess up..
For this reason i need found one way to secure this aspect of the server...
Thanks! (1 Reply)
Discussion started by: joangopan
1 Replies
5. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Attempting to make a auto restore script i have one made for backing up cron and installed programs just need to... (1 Reply)
Discussion started by: paperghost
1 Replies
6. Shell Programming and Scripting
Hello Friends,
I am trying to create an rsync file restore script. I will post want I have below and explain the problem I am having.
#!/bin/bash
#
# Partial Rsync File Restore Script
#
#
clear
echo
# Shell loads into /raid0/data/backup/bin/
cd .. # I cd to the backup... (1 Reply)
Discussion started by: jdavis_33
1 Replies
7. Shell Programming and Scripting
this is complete.. (2 Replies)
Discussion started by: zinn
2 Replies
8. Shell Programming and Scripting
Hi there is anyone able to show me two scripts for a delete and a restore command.
Delete - move a file to a dustibin directory that i have created. check to see if that file exsits first in the dustbin if so delete the file before moving the new one.
Restore - return the file to its... (1 Reply)
Discussion started by: arsenal1994
1 Replies
9. Shell Programming and Scripting
Hi all,
I have been tasked with creating a script that sends a file into a created "recycling" directory and another script that restores a "deleted" file. I have already created the removal script but am stuck on the restoring part.
I need to restore the file to its original location by... (0 Replies)
Discussion started by: bashbeginner
0 Replies
LEARN ABOUT OPENSOLARIS
ip6tables-restore
IPTABLES-RESTORE(8) iptables 1.6.1 IPTABLES-RESTORE(8)
NAME
iptables-restore -- Restore IP Tables
ip6tables-restore -- Restore IPv6 Tables
SYNOPSIS
iptables-restore [-chntv] [-M modprobe] [-T name] [file]
ip6tables-restore [-chntv] [-M modprobe] [-T name] [file]
DESCRIPTION
iptables-restore and ip6tables-restore are used to restore IP and IPv6 Tables from data specified on STDIN or in file. Use I/O redirection
provided by your shell to read from a file or specify file as an argument.
-c, --counters
restore the values of all packet and byte counters
-h, --help
Print a short option summary.
-n, --noflush
don't flush the previous contents of the table. If not specified, both commands flush (delete) all previous contents of the respec-
tive table.
-t, --test
Only parse and construct the ruleset, but do not commit it.
-v, --verbose
Print additional debug info during ruleset processing.
-M, --modprobe modprobe_program
Specify the path to the modprobe program. By default, iptables-restore will inspect /proc/sys/kernel/modprobe to determine the exe-
cutable's path.
-T, --table name
Restore only the named table even if the input stream contains other ones.
BUGS
None known as of iptables-1.2.1 release
AUTHORS
Harald Welte <laforge@gnumonks.org> wrote iptables-restore based on code from Rusty Russell.
Andras Kis-Szabo <kisza@sch.bme.hu> contributed ip6tables-restore.
SEE ALSO
iptables-apply(8),iptables-save(8), iptables(8)
The iptables-HOWTO, which details more iptables usage, the NAT-HOWTO, which details NAT, and the netfilter-hacking-HOWTO which details the
internals.
iptables 1.6.1 IPTABLES-RESTORE(8)