Sponsored Content
Top Forums Shell Programming and Scripting copy only newer files? (xcopy equivalent) Post 91456 by Chomps on Friday 2nd of December 2005 09:37:31 AM
Old 12-02-2005
Thanks to both.

rsync seems to do the job, but I'm still having some issues, such as certain files not being copied - I get this:

mkstemp "path/filename.jNLmL7" failed: Invalid argument

...which is double dutch to me. Any ideas about this?

The files that do copy seem to lose their application association too, which is not a deal breaker, but is a bit of a PITA. I suspect this is something to do with me moving files around behind the Finder's back. I might chase this bit up on the Apple forums.

Cheers!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

tar --newer = tar --newer-mtime ?

Hi, I have the following question : As far as I know unix doesn't store file creation dates. Would that imply the following? tar -cvzf backup.tar --newer is equal to: tar -cvzf backup.tar --newer-mtime ? (1 Reply)
Discussion started by: jamesbond
1 Replies

2. UNIX for Dummies Questions & Answers

Find files newer than...

Is there a way to use the find command to locate files newer than a specific date? Thanks! --Alex (4 Replies)
Discussion started by: vertigo23
4 Replies

3. Solaris

To copy the files newer than specific date

Dear all, Can you help me in copying files newer than speciifc date Thanks in advance, Rajesh (3 Replies)
Discussion started by: RAJESHKANNA
3 Replies

4. UNIX and Linux Applications

sftp -> put : How to uplaod only newer files

I have tried winscp, filezilla to copy data from windows xp SP2 machine to the sun sparc unix machine. However speed is around 120 to 130 kb/sec. I do have lot of files & with large size. So I switched to windows command prompt & transfered few files using sftp command. Its very fast as compared... (0 Replies)
Discussion started by: _prasad
0 Replies

5. Shell Programming and Scripting

cp work as xcopy.

Actually i want to copy some file locations to another. so if directory not exist it should create that. i used cp -R/r but it copies only one directory. it doesnt make directory inside directory.. so i want this should create them automatically. One more thing if file already exist there... (8 Replies)
Discussion started by: ajayyadavmca
8 Replies

6. Shell Programming and Scripting

Copy newer files without create

I want the same effect as "cp -u" but without create missing files, it is possible ? ps: bash (2 Replies)
Discussion started by: mrxrsd
2 Replies

7. Solaris

How to safely copy full filesystems with large files (10Gb files)

Hello everyone. Need some help copying a filesystem. The situation is this: I have an oracle DB mounted on /u01 and need to copy it to /u02. /u01 is 500 Gb and /u02 is 300 Gb. The size used on /u01 is 187 Gb. This is running on solaris 9 and both filesystems are UFS. I have tried to do it using:... (14 Replies)
Discussion started by: dragonov7
14 Replies

8. UNIX for Dummies Questions & Answers

Find files newer than x days

We had an arrant rsync run and started copying over new files from one system to another. Although this is what we will want to do at some point, for now, we want to maintain the system as it was a few days ago. I am looking for a script that will find files that are newer than x days. ... (5 Replies)
Discussion started by: Leyva62
5 Replies

9. Shell Programming and Scripting

ls files newer than 6 hours

How do I list al files in a folder with a creation date/time newer than 6 hours? (2 Replies)
Discussion started by: locoroco
2 Replies

10. Shell Programming and Scripting

Copy file only if newer

I only want the file copied if it is newer. But it still copies the file? zip -u Ubuntu_Documents.zip ./* cp -u Ubuntu_Documents.zip $DOCS_Backup/Ubuntu_Documents_`date +"%Y-%m-%d-%H-%M"`.zip (5 Replies)
Discussion started by: drew77
5 Replies
TMDIAGNOSE(8)						    BSD System Manager's Manual 					     TMDIAGNOSE(8)

NAME
tmdiagnose -- gather information to aid in diagnosing Time Machine issues SYNOPSIS
tmdiagnose -h tmdiagnose [-d seconds] [-f path] [-m] [-r] DESCRIPTION
The tmdiagnose tool gathers system and backup information in order to assist Apple when investigating issues related to Time Machine. A great deal of information is harvested, spanning system state, system and backup configuration, and snapshot details. What tmdiagnose Collects: o A spindump of the system o Several seconds of fs_usage ouput o Several seconds of top output o Individual samples of backupd and Finder o Power Management state and logs o IOKit registry information o A netstat inspection o A list of all open files on the system o All system logs o All kernel logs o All install logs o All fsck_hfs logs o All WiFi logs o Disk Utility logs for all local users o The system migration log o All spin and crash reports for the following processes: backupd mds diskimages-helper DesktopServicesHelper newfs_hfs NetAuthSysAgent o Recent spin and crash reports for the following processes, for all local users: Finder Locum System Preferences SystemUIServer iPhoto Mail MailTimeMachineHelper Address Book o Basic information about reachable AirPort and Time Capsule devices o The FindSystemFiles cache o Information about disks and mounted network shares o Information about attached disk images o A System Profiler report o A list of software that has been installed via the darwinup tool o Time Machine preferences, caches, and configuration information o Comprehensive information about Time Machine backups and snapshots The high-level backup structure for the current machine directory is recreated inside the diagnostic bundle, including the capture of various Time Machine log files contained within snapshots. Items in this "skeleton" structure have on them the extended attributes of the originals. Recreations of local snapshots are also captured in the same manner. The tmdiagnose tool will run the Spotlight diagnostic tool mddiagnose automatically, if it is available. What tmdiagnose Doesn't Collect: o No user files are harvested from within backups o No authentication credentials are harvested from the system o No authentication credentials are harvested for reachable AirPort and Time Capsule devices OPTIONS
-h Print full usage. -d sec Delay the start of the diagnostic by sec seconds. The system alert sound will play two times when the diagnostic begins. -f path Write the diagnostic to the specified path. -m Gather memory diagnostics for backupd and Finder. -r Do not reveal the diagnostic in Finder when finished. EXIT STATUS
tmdiagnose exits with status 0 if there were no internal errors encountered during the diagnostic, or >0 when an error unrelated to external state occurs or unusable input is provided by the user. Mac OS X 6 September 2011 Mac OS X
All times are GMT -4. The time now is 01:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy