Before posting, and to avoid disappointment, please read the following:

  • This forum is not for 2BrightSparks to provide technical support. It's primarily for users to help other users. Do not expect 2BrightSparks to answer any question posted to this forum.
  • If you find a bug in any of our software, please submit a support ticket. It does not matter if you are using our freeware, a beta version or you haven't yet purchased the software. We want to know about any and all bugs so we can fix them as soon as possible. We usually need more information and details from you to reproduce bugs and that is better done via a support ticket and not this forum.

Sync only the latest file...

SyncBackFree is the freeware version of SyncBack. It is *not* an evaluation version of SyncBackPro/SE.
Post Reply
chrwei
Newbie
Newbie
Posts: 3
Joined: Thu Dec 02, 2021 4:18 pm

Sync only the latest file...

Post by chrwei »

I have a directory tree on a server of periodic database dumps. I occasionally mirror those to my PC for local restore for development. Only the newest file in each folder is needed for this.

Is there a way to do that with SyncBack? I'm not seeing anything obvious in the settings and filters.

What I'm doing now is Run Attended, sort by source date&time, and selecting the ones I don't want and setting the action to Skip. I'm looking for a way to automate this without having to write my own program.

I see Pro supports scripting, and I've reviewed the manual, and it's not clear to me that I can do this on Pro, so I'd like to know that too.
mmullins_98
Expert
Expert
Posts: 170
Joined: Wed Jun 05, 2019 11:40 am

Re: Sync only the latest file...

Post by mmullins_98 »

It sounds like what you want is exactly what the SYNC profile does in SyncBackFree.

Assuming the files you don't want to copy are on your PC in the same folders as the server then only the newest on the server will be copied. The sync goes both ways so if you have a file newer on your PC then it will copy to the server.
If you are using a MIRROR profile then it will want to copy everything regardless.

I may be missing something and if so then try to be a little more specific.
chrwei
Newbie
Newbie
Posts: 3
Joined: Thu Dec 02, 2021 4:18 pm

Re: Sync only the latest file...

Post by chrwei »

I don't want old local files pushed to the sever, and I only want certain new files pulled, and all other local deleted.

example source:
a/diff/a_diff_1.bk
a/diff/a_diff_2.bk
a/diff/a_diff_3.bk
a/full/a_full_1.bk
a/full/a_full_2.bk

there are also "b" and "c" versions of the same structure. the file timestamps will correlate with the numbers, so 1 is the oldest, and 3 the newest.

I want only a_full_2.bk and a_diff_3.bk brought local if they aren't already, and anything else local removed.
mmullins_98
Expert
Expert
Posts: 170
Joined: Wed Jun 05, 2019 11:40 am

Re: Sync only the latest file...

Post by mmullins_98 »

Then I suggest writing a script outside of SyncBack and set your profile to run it before running the profile that you want to sync or mirror.
Post Reply