• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Backing up only new files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Backing up only new files


  • Subject: Re: Backing up only new files
  • From: Gnarlodious <email@hidden>
  • Date: Mon, 26 Apr 2004 15:21:04 -0600

I recommend Satimage's scripting addition (OSAX):
http://www.satimage.fr/software/en/downloads_osaxen.html

It includes a "backup" command that will do what you want.

here's a sample usage:

tell application "Finder"

backup alias thisFolder onto alias otherFolder level 2
backup alias otherFolder onto alias thisFolder level 2
update folder thisFolder necessity yes
update folder otherFolder necessity yes
display dialog "Finished" with icon note
else
display dialog "Error" with icon stop
-- return
end if

end tell


For a more robust example of its use see here:
http://www.Gnarlodious.com/OSX/AppleScript/Finder-Equalize.html

I call this kind of backup "equalizing" since the script updates both
folders to be equal, in contrast to your basic "backup" which is a one-way
incremental copy.

-- Gnarlie
Woolsey - Swanson Rule:
People would rather live with a problem they cannot solve
than accept a solution they cannot understand.



Entity Bernard Azancot spoke thus:

> Hello scripters !
>
> I am very proud of my little simple backup script. ;-))
> I use it everyday, at work without trouble, but... now , after months
> of use, I would like to improve it.
>
> Could it be possible to backup ONLY what has been modified or created,
> not replacing the entire volume ?
> How does AS compare files, and decide they are the same (not just the
> same name) ?
>
> I am wondering how I could do it.
> I was thinking of comparing the 2 folders items lists.
> It could go like this:
>
> ---
> set Folder1Contents to list folder BUSource without invisibles
> set Folder2Contents to list folder BUDestination without invisibles
> repeat with x in Folder1Contents
> ---
>
> Could it be the right way to seek ?
>
> Thanks in advance or the advices.
>
> Apologies for basic question and poor english.
>
> Bernard
> _______________________________________________
> applescript-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/applescript-users
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Backing up only new files
      • From: Emmanuel <email@hidden>
References: 
 >Backing up only new files (From: Bernard Azancot <email@hidden>)

  • Prev by Date: Misspelling Matters
  • Next by Date: A quick question about Folder Actions...
  • Previous by thread: Backing up only new files
  • Next by thread: Re: Backing up only new files
  • Index(es):
    • Date
    • Thread