#!/bin/bash
#SBATCH -n 1
#SBATCH -t 01:00:00
#SBATCH -J gfasftp
#SBATCH -e /esarchive/recon/ecmwf/gfas/scripts/i535-marc-hourly/out-logs/format-ftp-%j.err
#SBATCH -o /esarchive/recon/ecmwf/gfas/scripts/i535-marc-hourly/out-logs/format-ftp-%j.out

# change permissions
chmod -R 770 $1/$2/GHOSTED/

dtrsync -rvzhPt --groupmap=*:bsc32 $1/$2/GHOSTED /gpfs/archive/bsc32/esarchive/obs/ghost/$2/