- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: scp files by date only
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2011 12:52 AM
тАО03-04-2011 12:52 AM
Please I have got a directory with files of january, feb, march, april etc, etc.
I only want scp files of january to another server.
Can somebody help?
F.R.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2011 02:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2011 10:56 PM
тАО03-06-2011 10:56 PM
Re: scp files by date only
I did the following:
for JOB in `ls -lrt | awk '{if ($6 == "Jan")print $9}'`
do scp -p /tmp/fr/$JOB root@
done
But its prompt me for password for every file
Is it possible to get away with this password issue?
F.R.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2011 12:34 AM
тАО03-07-2011 12:34 AM
Re: scp files by date only
Best,
Stephan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2011 12:42 AM
тАО03-07-2011 12:42 AM
Re: scp files by date only
Sorry Iam not following you, can you give me a step by step procedure?
F.R.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2011 01:16 AM
тАО03-07-2011 01:16 AM
Re: scp files by date only
Target Server: B
On B:
1. check ~/.ssh if a file id_dsa.pub or id_rsa.pub exist, if yes go to 3.
2. run 'ssh-keygen -t rsa' - do not enter a password, under ~/.ssh/ the file id_rsa.pub and id_rsa will be created
3. Copy the .pub file to A
On A:
4. go to ~/.ssh/
5. run 'cat
Next login should be without asking for a password.
Best,
Stephan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2011 01:19 AM
тАО03-07-2011 01:19 AM
Re: scp files by date only
Thanks a lot its working fine, but after I open another session to transfer other files in the same manner I got the following error:
CDESPATMOZ0106102 100% |********************************************************************************************| 123 00:00
CDDOM01MOZ0101802 100% |********************************************************************************************| 22268 00:00
Segmentation Fault - core dumped
Any ideas?
F.R.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2011 01:34 AM
тАО03-07-2011 01:34 AM
Re: scp files by date only
Check what the command will give you on your source server:
ls -lrt | awk '{if ($6 == "Jan")print $9}'
Or in the loop change the scp to a simple echo $OBJ to see what comes up.
Something with blanks, special chars, ... ?
hth
Stephan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2011 11:54 PM
тАО03-07-2011 11:54 PM
Re: scp files by date only
Thansk Stephen, I will now assign 10 points to you
F.R.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2011 11:55 PM
тАО03-07-2011 11:55 PM
Re: scp files by date only
I am reopen this thread:
I am trying to copy files from one server to the other. The problem is from source directory I only want to transfer files from Jan 2011, but there also files from Jan 2010. So I can scp only the files from Jan 2011?
Your help will be appreciated.
F.R.