How to reduce DATA_DIR size?

Options
UserBird
UserBird Dataiker, Alpha Tester Posts: 535 Dataiker
The DSS Data Directory is huge (several GB). Is there a way to optimize it without any data loss?

Best Answer

  • jereze
    jereze Alpha Tester, Dataiker Alumni Posts: 190 ✭✭✭✭✭✭✭✭
    edited July 17 Answer ✓
    Options

    The DSS data directory (or DATA_DIR) stores all your configuration, settings, definitions of datasets, recipes, logs, etc. of your DSS installation. You can read more about the DATA_DIR.

    This is a critical directory. You should make regular back-ups.

    If you really need to gain some space, you have the following options:

    • Look at the managed datasets in DATA_DIR/managed_datasets and verify that there is no dataset no longer used and that has not been deleted.
    • Delete the logs of old jobs that are in DATA_DIR/jobs.

    For instance:


    #open the jobs directory
    cd DATA_DIR/jobs
    #find all directories containing logs of jobs older than 30 days
    find . -mindepth 2 -maxdepth 2 -type d -mtime +30
    #delete these directories
    find . -mindepth 2 -maxdepth 2 -type d -mtime +30 -exec rm -rf {} \;

    Keep in mind it's a touchy operation!

Setup Info
    Tags
      Help me…