@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux www.thesweb.ru 4.19.0-22-amd64 #1 SMP Debian 4.19.260-1 (2022-09-29) x86_64
Current Path :
/
var
/
www
/
www-root
/
data
/
www
/
thesweb.ru
/
sci_thes
/
backup
/
Path :
Upload File :
New :
File
Dir
/var/www/www-root/data/www/thesweb.ru/sci_thes/backup/sci_thes_bkp.sh
#!/bin/sh PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin export PGPASSWORD=y3mvy2kwC1 #export PGPASSWORD dbUser=postgres database=SCI_THES_20201121 #find $pathB \( -name "*-1[^5].*" -o -name "*-[023]?.*" \) -ctime +61 -delete pg_dump -U $dbUser $database | gzip > /var/www/www-root/data/www/thesweb.ru/sci_thes/backup/files/pgsql_$(date "+%Y-%m-%d").sql.gz unset PGPASSWORD