Search Results

Search: Posts Made By: damang111
2,815
Posted By damang111
HELP! Need to compare 2 folders on 2 different systems, and copy unmatched filenames to other folder
This has been tearing my hair out.

I need to:
1: compare server1:/data/archive/ to server2:/data/archive/ (through rsync, ssh, etc)
2: filenames that don't match, get copied (scp) to...
5,427
Posted By damang111
.
Thanks for the pointers.

I managed to setup the sudoers to run the script as root through ssh with no issues!

t.
5,427
Posted By damang111
Need to run a bash script that logs on as a non-root user and runs script as root
So I have a script that runs as a non-root user, lets say the username is 'xymon' .
This script needs to log on to a remote system as a non-root user also and call up a bash script that runs another...
4,871
Posted By damang111
thanks for all your help guys. I managed it...
thanks for all your help guys.
I managed it with the following:
change the format to yyyymmdd .
then I have this cronjob:
find /dbbackups/ -maxdepth 1 | egrep [0-9]{8} | sort -r | sed 1,3d |...
4,871
Posted By damang111
.
Thanks for the help guys.
I will change the script so the date format is a little more standard.

When do i a ls -1tcp | grep "/$" | tail +3
I get the following error:
tail: cannot open `+3' for...
4,871
Posted By damang111
.
Thanks for the reply.
the folder structure is like this;
180111
190111
200111
210111
240111
only dates.

is this how I would wrap it?:
find /databackup/dbs/* -maxdepth 0 -type d -mtime +0 |...
4,871
Posted By damang111
.
I'm not very good at bash but I've been searching google for this and so far nothing without adding 10 lines of code and I still couldn't make heads or tails out of it.
Can anyone help?
4,871
Posted By damang111
Remove all folders within another folder except the lastest 1, 2 or 3.
I am using this command to remove all files and folders older than 24 hours;
find /databackup/dbs/* -maxdepth 0 -type d -mtime +0 -exec rm -rf {} \;
However, if/when backups to this folder fail and...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 08:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy