Skip to content

Commit

Permalink
Set current date&time when FTP backup is enabled. Fixes #117
Browse files Browse the repository at this point in the history
  • Loading branch information
serghey-rodin committed Mar 1, 2014
1 parent c333956 commit d87f3f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/v-backup-user
Expand Up @@ -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'
Expand Down

1 comment on commit d87f3f6

@anton-reutov
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Серёга глянь пожалуйста ЛС на форуме.

Please sign in to comment.