> 1) ok, I can schedule snapshots using cron (snapshot's name will be ganarated 
> from current date)
>  how can I remove snapshots older than a week ? 
Delete the directory on disk. 

> 2) ok, I can enable increment backups. How can I remove incremental SSTables 
> older than 1 week ?
>  it's more tricky than with snapshots.
AFAIK delete the file on disk. 

> it will lead me to several find/cron/bash scripts. Single mistake and I can 
> delete cassandara data entirely.
Always work in the snapshots directory and you will be fine.

Cheers

-----------------
Aaron Morton
Freelance Developer
@aaronmorton
http://www.thelastpickle.com

On 23/05/2012, at 10:45 PM, Илья Шипицин wrote:

> I seen that guide. It's missing several important things
> 
> 1) ok, I can schedule snapshots using cron (snapshot's name will be ganarated 
> from current date)
>  how can I remove snapshots older than a week ? 
> 
> 2) ok, I can enable increment backups. How can I remove incremental SSTables 
> older than 1 week ?
>  it's more tricky than with snapshots.
> 
> 
> it will lead me to several find/cron/bash scripts. Single mistake and I can 
> delete cassandara data entirely.
> 
> 2012/5/23 aaron morton <aa...@thelastpickle.com>
>> 1) is there any good guide for scheduling backups ?
> this http://www.datastax.com/docs/1.0/operations/backup_restore ?
> 
>> 2) is there way to get list of snapshots ? (without "ls" in directory)
> No. 
> 
> Cheers
> 
> 
> -----------------
> Aaron Morton
> Freelance Developer
> @aaronmorton
> http://www.thelastpickle.com
> 
> On 23/05/2012, at 5:06 PM, Илья Шипицин wrote:
> 
>> Hello!
>> 
>> I'm about to schedule backups in the following way
>> 
>> a) snapshots are done daily
>> b) increment backups are enabled
>> 
>> so, backup will be consistent, very old snapshots must be removed (I guess, 
>> a week depth should be enough).
>> 
>> couple of questions:
>> 
>> 1) is there any good guide for scheduling backups ?
>> 2) is there way to get list of snapshots ? (without "ls" in directory)
>> 
>> Cheers,
>> Ilya Shipitsin
> 
> 

Reply via email to