[ Date Index ]
[ Thread Index ]
[ <= Previous by date /
thread ]
[ Next by date /
thread => ]
Re: [LUG] Automatic Script
- To: list@xxxxxxxxxxxxx
- Subject: Re: [LUG] Automatic Script
- From: Peter Walker <peter.walker@xxxxxxxxxxxxxxx>
- Date: Sat, 22 Aug 2020 11:09:26 +0100
- Autocrypt: addr=peter.walker@xxxxxxxxxxxxxxx; keydata= mQENBFJw6BYBCADa8270dZvnJGrSMM3NHLBx4i/jHbV2mTN42XoHfGnP7gKtNwpCtllsj88K d/LrVZM4hJJ8LQYES8gT00uxukTiQpRQFkAyfSpiGTf0adn6+hfzcWPa0UclBM9B8i/ce7hD ThNhuU8APz8W4fohk7smxnf37R3cEeWEK0btjKNp9yufMxwuIKhXvmLkE6ic/3Ew7/94t7ks ABmv3e8ozGGkbTE03Dxsk6H7AfnBxfTLZl2oMNo/mAiLGlA5ZfYOzG2+aLEgBSUsAz+KTrs2 tL+yVWqgXqQDKslQ4Ra4vGgo5JyxAJyjuwvmrl/rseZ60IpC0z+d8yK57VkJrNfmr6dtABEB AAG0K1BldGVyIFdhbGtlciA8cGV0ZXIud2Fsa2VyQHN0b2NrZmFzdC5jby51az6JATgEEwEC ACIFAlJw6BYCGwMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEKwAW2qktGVXjAgH/R2G 5QqeLtS8tU2eh1lxpfc8JdggKO9ZlWCz+pQlCzFyac1WCY7e9L6QKNgl9EhVyQX8tZ7nCQHI ko5nQR4xQRcL/Bilu5ybasVEaqU0E6/RjVysMbUY0wp+2zBkDBBbw+NqQii19FiQj0lXs1hh GCcv0EAJNt5wGTidSNzZswL4AZ/gmIZPAdnnlXm56yMZmXIhAebptzuNDoAu7QJ27JfzsY6n //J6f1tCZbsyOapWd3mUFcjdJ/KVK7XOmudhkkj077fURHM/UL1sSX4qf/HStEHdGqYwtuqC oIdfhG7FVP4UgczHBHxyGv/Sp4+nm7NJ15yJBaUOwVeZNu+qJB+5AQ0EUnDoFgEIALrLCgZb uTeSXkqMSLS79mxMtoWx+LL9cPkhyPaBf2xj7/PqD0G518vUazUUmhlCsWeJdylQ7m4xoc5L m06hzIplNBx4gIzvTy0P4ysvq5nZ4Wh0ph8zKe4tUDwl68yZny4W7Coy1VXYPLoVqBOVr0Mp bHEAXqgxSHECAiuNNez9MtrnKlOa7DEVTPeiIFDDFQX1Akfhl9HAqEM/fwx2cY8tKCnIfOFe UsHBMeJOhDHiBoPlVko1hBKAir4m8VmOkTuEIX4arfRTu4EbWabsPbhlWlCMKz0qJ4R10xvo 34xHKQOyTy8pzBnYM2qUpZltK9HLxgddBgSSpIBw+bAPnfcAEQEAAYkBHwQYAQIACQUCUnDo FgIbDAAKCRCsAFtqpLRlV1VMCAChd2wyaTLsp06F6biD2NMzDyFVQpmwpfbQ1I3yqRv4PhB0 aOwixFAxIQ/K+g0HfwjPbnAzelg+GqYOmSsw6JKrHgCo5NGRzugeFlVfFH/mUKPneYnSTMXg MBRQNPWY8C9/3+aNpHgTzmL708iqu2gVJKpg25hFQNum2x0bVVrB3us69RDE5DSlUBMe0wH7 HDz8qv7enffNzJv7UFspdCQOtYSK3hUb7dVKFPgCyGJ9QCA16fgzyB8AqFkG6RUkjmsQzqXq bD7A2PvinETPbE9n++BPbeXlp2R2rNsvGcwVwCjYeui+QiqRRHgDf1Fbt0aVUsIhEhzOYDnd y7woBsIB
- Content-language: en-US
- Delivered-to: dclug@xxxxxxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dcglug.org.uk; s=1586423162; h=Sender:Content-Transfer-Encoding: Content-Type:Reply-To:List-Subscribe:List-Help:List-Post:List-Unsubscribe: List-Id:Subject:In-Reply-To:MIME-Version:Date:Message-ID:From:References:To: Cc:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Owner:List-Archive; bh=tw0EwiqiS07eCr1xohfJpq0Cpqp6XMCUcsj+wLptWoo=; b=vxmHtHuYNME++3ukxxyVjHb+KL ipa9nH4I8oeMnwkaPVO64k7Bzxq/kmp7eV8zNP4FIoH/8ysUpIRY7HHPLBL26fssbUuuS42EyNwBm 9PhbyVSajkd8zr8ATtEnEm6+kAzgBfs/0/FAPE1IMgLq8iE5oqhG5meVL9DRU/86uz0Y=;
On 22/08/2020 09:22, Rich Brown wrote:
>
> I can hear the despair when I don't post enough info!
>
> I have a NextCloud server running which is connected to three different computers,
> two in different locations. So if computer one creates a file and this is uploaded
> then it will be synced through the whole network. However, this is not a back-up
> and if I delete the same file it is then deleted across the network! So I have two
> backup disks in two of the computers, so the script will copy that file into the
> backup drive. It won't need to delete, overwrite or anything else.
>
> I did wonder about rsync but can it do the above please? I thought it synced?
>
> Thanks
>
> Rich
>
I am still having trouble exactly understanding your use case. Is the
aim to have a point in time snapshot of the directory on, say, a daily
basis?
Rsync would do this quite happily. It provides a lot of options to allow
you to customise what is copied across. Despite having "sync" in the
name it is a one way process, from original to copy. We use something
similar at work to provide daily snapshots. Our version is very quick
and dirty. Rsync has an option to tell it what to do with any files
which are overwritten by the copy; in our case we put them in a separate
directory for the day so we can get files older than the previous day
back if we want to. A more sophisticated version uses hardlnks to create
a full copy of the backup directory for each day (without creating any
"new" files); rsync then overwrites any files which have changed,
forcing a new version to be created on the backup disk. I don't think I
explained that very well but the end result is only the changed files
for each day take up disk space; the unchanged ones are just links to
the original.
You could also have a look at rdiff-backup. This is a more backup
orientated tool that handles all the differences automatically. You run
it to create the backups and update them. You also use the tool to work
out what has changed between backups. As far as I know the actually
backup is still readable by normal linux toolsif you want.
Both these tools can be run from cron to provide an automatic service.
There are also plenty of full strength backup solutions out there that
would also do what you want.
Cheers,
Pete
--
The Mailing List for the Devon & Cornwall LUG
https://mailman.dcglug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq