Sponsored Content
Full Discussion: Timebased search script
Top Forums Shell Programming and Scripting Timebased search script Post 302933534 by bigsanch on Friday 30th of January 2015 11:53:50 AM
Old 01-30-2015
Hi

@sea
Oh yes thats of course true I din't think about that, so clear isn't good for me, I think any other options arn't there so it doesn't matter then the code should better be seen.

But with the three files I don't know if its that way I will do in the end, I think over it because I am not sure like I should realice a full backupscript for users. This is only a backbone which I still improve that when I know how.

@all
Is it better for you (think as a user) when you need to bring back a backup to get automaticly the last one, or get standart option the last one, with question to get other ones?
And how long do you would hold the backups? I think aboute to delete them per script after 2 weeks to hold my system free.

---------- Post updated at 11:53 AM ---------- Previous update was at 11:37 AM ----------

@all

At this time my script is working like this:

1:
user can make backup himselfe and automaticly all 3 hours with safing db file and serverfiles on my server as default
user is asked if he wants do take a own ftp server for filebackup, if yes the ftp data are safed in a db of mine to connect everytime

2:
user get asked to get standard option (take last backup) or to take a specified one per date
if a specified he can choose the date of listing all files of last 2 weeks if not script continues
user get shown if a backup is there of (last) actuell date/time and get asked to take this or last backup
if last backup (at this moment) only takes the backup of the last safe and ask to do
then the script takes a "special" backup of the db before restoring backup, do restore and make a new backup for the user

3:
User get asked to restore files too or only db
if files too, the script save the files now on my server first before restoring, restore backup files from his/mine server,
makes a new backup and user get asked if he wants to get the special backup of these files bevor they get restored
if not he get asked if he agrees to delete this special filebackup to save space

Is this ok for you or did I forget something or do better one?

EDIT:
And is it better go make the script for user to execut like ./backup store|restore..... or as a service?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

script to search all the directories

Hi there, Is there any command or script to search all the directories for duplicated files? Thanks, Abrahim (3 Replies)
Discussion started by: abk
3 Replies

2. Shell Programming and Scripting

Search script

I need to create a script called 'find_data' that will search a file by passing two parameters to it :confused: . I'm pretty good with scripting but haven't really gotten into sed and awk that much (and no perl whatsoever). I'm really at a loss and need to get something working in the next... (14 Replies)
Discussion started by: BCarlson
14 Replies

3. Shell Programming and Scripting

Search File Script

Nice forum for noobs like me to UNIX. With that said, I need assistance. I am trying to make a script to search files for a specific date and string within the file. Then I need the script to move the file that have the specific date and string to a directory. In the interim I have been manually... (7 Replies)
Discussion started by: I4ce
7 Replies

4. UNIX for Advanced & Expert Users

Help with search script

HI all, I am trying to find files that have .cc3 file extenstion folder using this script below, but this fails as there are files in the folder and i get a message saying i have no files. Please anyone reveiw and let me know if i am missing anything.I am working on this from two days and i... (9 Replies)
Discussion started by: bsandeep_80
9 Replies

5. Shell Programming and Scripting

script to search a file

hi all i have a requirement to write a script which will serach a file in a particuar location for 3 hours from the time when the script is run.if during this period the file arrives in a particular location then this will transmit the file to a other server.please help me writing the script which... (1 Reply)
Discussion started by: dr46014
1 Replies

6. Shell Programming and Scripting

Small Search script

I need to write a small shell script which does the following : I have a file : root/var/log/ocmp/ocmpclient.log This is a log file which is continuosly getting updated . I have to keep looking into this file all the time. I have to look for four keywords, "File Detected", File Sending",... (2 Replies)
Discussion started by: appu1987
2 Replies

7. Shell Programming and Scripting

Log Search Script

Hi, I am trying to write a script to search a log- IPaddress being the search criteria, I would ideally like the script to ask the ipaddress Enter IP address - 244.258.27.225 And the ideal result would be for the script to get all the entries in the log file for a particular IP address,... (3 Replies)
Discussion started by: fuzion.hyd
3 Replies

8. Shell Programming and Scripting

Search and Copy Script

Dear All, I would like to create a Unix script which basically searches for files which are more than 2 days old and copy only the new files to the destination. What i mean is if the destination may have most of the files, it may not have only last 2 to 3 days file. I am able to create the... (6 Replies)
Discussion started by: rrb2009
6 Replies

9. Shell Programming and Scripting

Please help in creating search script

Hi all, Hope everyone is doing fine. I need a help in creating search script. I have file which contains job names and job recs. I need to select specific job name and next line which is job rec job (BLREEXTT) { Record B${cycle}${month}${year}000075; follows BLCYRRTCHKT; ... (5 Replies)
Discussion started by: taksistalo
5 Replies

10. UNIX for Dummies Questions & Answers

Help with ip search script

Hi Obviously first time poster here. I have been set the task of creating a network diagram for each of our clients in the business i work for. After identifying ip adresses of firewalls name servers and the like im got to the point where i found it impracticle to go through 254 ip address and... (6 Replies)
Discussion started by: jeked
6 Replies
INSTALLSIEVE(1) 					      General Commands Manual						   INSTALLSIEVE(1)

 *

NAME
installsieve - user utility for managing sieve scripts SYNOPSIS
installsieve DESCRIPTION
installsieve is a utility that allows users to manage their sieve scripts kept on the server. OPTIONS
-v <name> View script with the given name. The script if retrieved sucessfully is output to standard output. -l List all of the scripts currently on the server. If one of the scripts is active a arrow is printed indicating that it is the active script. -p <port> Port to connect to. If left off this defaults to "sieve" as defined in /etc/services. -i <file> Install a file onto the server. If a script with the same name already exists on the server it is overwritten. Upon sucessfully putting the script on the server the script is set active. If <file> has the extension .script it is chopped when put on the server since sieve names may not contain a '.'. -a <name> Set <name> as the active script. The list of available names can be obtained from the '-l' option.. -d <name> Delete the sieve script on the server with <name>. -m <mechanism> Force installsieve to use <mechanism> for authentication. If not specified the strongest authentication mechanism is chosen. -g <name> Get the sieve script with <name> and save it to disk with a ".script" extension. If a file with that name already exists it is overwritten. -u <user> Userid/Authname to use for authentication; by default, the current user. CMU
Project Cyrus INSTALLSIEVE(1)
All times are GMT -4. The time now is 11:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy