File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1- 10  2  *  *  *  source /env.sh  && rcb backup > /proc/1/fd/1 
1+ 10  2  *  *  *  source /.env  && rcb backup > /proc/1/fd/1 
22
Original file line number Diff line number Diff line change 11#! /bin/sh
22
33#  Dump all env vars so we can source them in cron jobs
4- rcb dump-env >  /env.sh 
4+ rcb dump-env >  /.env 
55
66#  Write crontab
77rcb crontab >  crontab
Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ def start_backup_process(config, containers):
241241            except  Exception  as  ex :
242242                logger .exception (ex )
243243                errors  =  True 
244-                  
244+ 
245245    # restart stopped containers after backup 
246246    if  len (containers .stop_during_backup_containers ) >  0 :
247247        utils .start_containers (containers .stop_during_backup_containers )
@@ -304,8 +304,7 @@ def crontab(config):
304304
305305
306306def  dump_env ():
307-     """Dump all environment variables to a script that can be sourced from cron""" 
308-     print ("#!/bin/bash" )
307+     """Dump all environment variables to a file that can be sourced from cron""" 
309308    print ("# This file was generated by stack-back" )
310309    for  key , value  in  os .environ .items ():
311310        print ("export {}='{}'" .format (key , value ))
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments