Explorar o código

Set current date&time when FTP backup is enabled. Fixes #117

Serghey Rodin %!s(int64=12) %!d(string=hai) anos
pai
achega
d87f3f6340
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      bin/v-backup-user

+ 4 - 0
bin/v-backup-user

@@ -538,6 +538,10 @@ ftp_backup() {
     # Parse config
     source $VESTA/conf/ftp.backup.conf
 
+    # Set current data
+    DATE=$(date +%F)
+    TIME=$(date +%T)
+
     # Set default port
     if [ -z "$(grep 'PORT=' $VESTA/conf/ftp.backup.conf)" ]; then
         PORT='21'