backups: move import at the beginning of .py file
This commit is contained in:
parent
0fcceb324d
commit
0b0d50edf3
@ -31,6 +31,7 @@ import os
|
|||||||
import subprocess
|
import subprocess
|
||||||
import re
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
|
import tempfile
|
||||||
import time
|
import time
|
||||||
import grp,pwd
|
import grp,pwd
|
||||||
from multiprocessing import Queue,Process
|
from multiprocessing import Queue,Process
|
||||||
@ -332,7 +333,6 @@ def backup_do(base_backup_dir, files_to_backup, passphrase,\
|
|||||||
progress = blocks_backedup * 11 / total_backup_sz
|
progress = blocks_backedup * 11 / total_backup_sz
|
||||||
progress_callback(progress)
|
progress_callback(progress)
|
||||||
|
|
||||||
import tempfile
|
|
||||||
feedback_file = tempfile.NamedTemporaryFile()
|
feedback_file = tempfile.NamedTemporaryFile()
|
||||||
backup_tmpdir = tempfile.mkdtemp(prefix="/var/tmp/backup_")
|
backup_tmpdir = tempfile.mkdtemp(prefix="/var/tmp/backup_")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user