#!/bin/bash
########### Begin SLURM header ###########
#Partition
#SBATCH --partition=cpu-single
# Request number of nodes and CPU cores per node for job
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=10
#SBATCH --mem=2G  
# Estimated wallclock time for job
#SBATCH --time=01:00:00
#SBATCH --job-name=tar
#SBATCH --output=tar.out
#SBATCH --error=tar.err

SRC_DIR="/home/hd/hd_hd/hd_fz183/Dipolar-Gas-Simulator/Results/Data_3D/GradientDescent"
TARBALL_NAME="gd_result_$(date +%Y%m%d_%H%M%S).tar.gz"

# Create tarball
echo "Creating tarball..."
tar -czf "$TARBALL_NAME" -C "$SRC_DIR" .
echo "Completed creation of tarball."
