this is not the first time i see you give advice which is dangerous at best and desastrous at worst. It is also not the first time you have been told to think through more thoroughly the consequences of your prospective "solutions". The problem is not that a solution is incomplete and/or only a sketch thereof. It is the lack of you stating where exactly the thread-O/P has to double-check, complete and/or correct your proposed solution, which is invalidating (and as the upshot making counterproductive) what you write.
As a systems administrator it should be the most important part of your work ethics to think through thoroughly what you do BEFORE YOU DO IT! "Oops" is said by us only in jokes, a responsible sysadmin never has to say that at all.
Think about that and use the same amount of consideration and double-checking you hopefully exert at work here, when you post, too. Whoever is coming for help here doesn't know better and it is our duty to prevent them from doing something harmful even more than to give advice.
Please, before you say something you are not prepared to do on your own most important system - better say nothing at all. As much as i appreciate seeing the board attracting experts i will have to act as a moderator to prevent damage done to people coming here to get helped. Continue doing like you do now and i have no other option than to ban you.
I have a simple backup script that I am running to back up drives across the network. However I need to have detailed log files for this script such as time backup started, what was backed up, if there were any errors and the time that the backup was complete. I would also like the script to... (3 Replies)
Hi,
I'm trying to write a command that backs up certain files into my current directory and adds a prefix to the backed up file name. I realise this can be done in a script by specifying each individual file but would like to know if it can be done on one line and made an alias.
I have the... (5 Replies)
Hi,
I wrote a simple script to backup of index.php and index.html in my box. So, I wrote a script which take a copy of the index page as 1Mar09: but it does not comes up..
#! /bin/bash
find . -name index.* > domains.txt
for i in `cat domains.txt` ; do cp index* index*.1Mar09 $i; done
But... (6 Replies)
Im working on a shell script that uses three parameters, a string to replace, the string replacing, and a file name.
In this script it makes a back up file before the replacement occurs. However I want to be able to either search the file to see if it has the string and if it doesnt dont create... (5 Replies)
# find /home/shantanu -name 'my_stops*' | xargs ls -lt | head -2
The command mentioned above will list the latest 2 files having my_stops in it's name. I want to keep these 2 files. But I want to delete all other files starting with "my_stops" from the current directory. (3 Replies)
I am trying to copy files from one directory to another using shell script. Can anyone please troubleshoot the code.
thanks in advance...
#!C:\Shell\sh.exe
files_dir="C:\Documents and Settings\scripts\files"
backup_dir="C:\Documents and Settings\scripts\ztest"
echo cding to... (2 Replies)
Hi Friends,
I need help. I have around 100 users. I want to take date wise backup of files which are on desktop for every user.
My user directory path is -: /home/dr/<user_name>/Desktop
1) Script has to run on a perticular time everyday
2) Script has to take backup of all files present... (2 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 Guys,
I'm very new to bash scripting. Please help me on this.
I'm in need of a backup script which does the ff.
1. If a file is larger than 5GB. split it and tar the file.
2. Weekly backup file to amazon s3 using s3rsync
3. If a file is unchanged it doesn't need to copy to amazon s3
... (4 Replies)
we want to backup all opened files by vi before editing also with version information. i wrote below alias to backup crontab file content with version info. What i want know is to make this opened files by vi. We want to prevent user mistakes by adding this alias.
alias crontab='DATE=$(date... (4 Replies)