From d87f3f6340363e8a6cfc77948087a01d0f6b78fe Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Sat, 1 Mar 2014 17:20:55 +0200 Subject: [PATCH] Set current date&time when FTP backup is enabled. Fixes #117 --- bin/v-backup-user | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/v-backup-user b/bin/v-backup-user index 2b73eb501..024742bda 100755 --- a/bin/v-backup-user +++ b/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'