1
0
mirror of https://github.com/OpenXE-org/OpenXE.git synced 2025-01-24 19:51:14 +01:00
OpenXE/backup/mysql/userdata_ftp.sh.tpl

11 lines
211 B
Smarty
Raw Normal View History

2021-05-21 08:49:41 +02:00
#!/bin/sh
tar cfz /tmp/userdata.tar.gz ../../userdata
ftp -inv <ipftpserver> << EOF
user <userftp> <passwordftp>
put /tmp/userdata.tar.gz userdata_complete_`date +%d`.tar.gz
bye
EOF
rm -f /tmp/userdata.tar.gz