Client backups

User data should be synchronised to each user's respective home directory on b.fluid.tuwien.ac.at. Home directories on b.fluid are backed up daily and can be restored for at least one year by the admins.

Setup instructions

Windows

In order to set up file synchronisation to b.fluid on your Windows client, please contact Iris Fula.

GNU/Linux, macOS, other Unix-like operating systems

Please make sure to…

export TU_USER=YOUR_TU_USERNAME
export CONFIG_DIR="${HOME}/.config/sync-to-host"
export SSH_KEY="${CONFIG_DIR}/id_ed25519"
export TARGET_DIR=$(hostname -s)

# set up config and SSH key
mkdir -p "${CONFIG_DIR}"
[[ -f "${SSH_KEY}" ]] || ssh-keygen -o -a 100 -t ed25519 -N "" -q -f ${SSH_KEY}
cat ${SSH_KEY} | ssh ${TU_USER}@b.fluid.tuwien.ac.at "mkdir -p .ssh && cat >> .ssh/authorized_keys"

# set up cron job
sudo tee /etc/cron.d/b_backup-${TU_USER} <<EOF
00 18 * * * ${USER} /usr/local/bin/sync-to-host ${TU_USER} b.fluid.tuwien.ac.at ${TARGET_DIR}
EOF

backup (last edited 2025-06-25 09:50:07 by www)