-
Notifications
You must be signed in to change notification settings - Fork 2
/
UploadArchive.py
executable file
·143 lines (110 loc) · 4.62 KB
/
UploadArchive.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# -*- coding: utf-8 -*-
"""
Created on Fri Jul 29, 2016
@author: lmadeo
UploadArchive.py
"""
import local
#from UploadArchiveLib import new2current, closeConnection
import UploadArchiveLib as UAL
import datetime as DT
from dateutil.relativedelta import relativedelta
remotePath = local.remote
print '===================================================================='
print 'UPLOAD_ARCHIVE.py ', str(DT.datetime.now() + relativedelta(microsecond=0))
print '===================================================================='
rootFolder = ''.join((local.remoteStub,'Audio3/'))
# Sunday @ 2pm 7/24/2016
startTuple = (2016, 7,24,14,00,00)
endTuple = (2016, 7,24,15,03,00)
targetFolder = ''.join((rootFolder, 'Sun1400/'))
sftp, success = UAL.new2current(startTuple, endTuple, targetFolder)
# Sunday @ 3pm 7/24/2016
startTuple = (2016, 7,24,15,00,00)
endTuple = (2016, 7,24,17,03,00)
targetFolder = ''.join((rootFolder, 'Sun1500/'))
sftp, success = UAL.new2current(startTuple, endTuple, targetFolder)
'''
############################################################
# THU 7/21/2016
############################################################
# DriftlessMorning archive for 7/21/2016
startTuple = (2016, 7,21,06,00,00)
endTuple = (2016,7,21,8,3,00)
targetFolder = ''.join((rootFolder, 'Thu0600/'))
sftp, success = UAL.new2current(startTuple, endTuple, targetFolder)
# LOTR archive for 7/21/2016
startTuple = (2016, 7,21,9,00,00)
endTuple = (2016,7,21,10,3,00)
targetFolder = ''.join((rootFolder, 'Thu0900/'))
sftp, success = UAL.new2current(startTuple, endTuple, targetFolder)
# QueSeraSera archive for 7/21/2016
startTuple = (2016, 7,21,10,00,00)
endTuple = (2016,7,21,12,0,00)
targetFolder = ''.join((rootFolder, 'Thu1000/'))
sftp, success = UAL.new2current(startTuple, endTuple, targetFolder)
# MLou's shoes archive for 7/21/2016
startTuple = (2016, 7,21,13,00,00)
endTuple = (2016,7,21,15,03,00)
targetFolder = ''.join((rootFolder, 'Thu1300/'))
sftp, success = UAL.new2current(startTuple, endTuple, targetFolder)
# Slideman's shoes archive for 7/21/2016
startTuple = (2016, 7,21,15,00,00)
endTuple = (2016,7,21,17,03,00)
targetFolder = ''.join((rootFolder, 'Thu1500/'))
sftp, success = UAL.new2current(startTuple, endTuple, targetFolder)
# Global Beat's shoes archive for 7/21/2016
startTuple = (2016, 7,21,19,00,00)
endTuple = (2016,7,21,17,21,00)
targetFolder = ''.join((rootFolder, 'Thu1900/'))
sftp, success = UAL.new2current(startTuple, endTuple, targetFolder)
# Hwy 131 Brew archive for 7/21/2016
startTuple = (2016, 7,21,21,00,00)
endTuple = (2016,7,21,23,03,00)
targetFolder = ''.join((rootFolder, 'Thu2100/'))
sftp, success = UAL.new2current(startTuple, endTuple, targetFolder)
############################################################
# FRI 7/22/2016
############################################################
# DriftlessMorning archive for 7/22/2016
startTuple = (2016, 7, 22, 06,00,00)
endTuple = (2016,7,22,8,3,00)
targetFolder = ''.join((rootFolder, 'Fri0600/'))
sftp, success = UAL.new2current(startTuple, endTuple, targetFolder)
# 2ND CUP archive for 7/22/2016
startTuple = (2016, 7, 22, 8,00,00)
endTuple = (2016,7,22,9,3,00)
targetFolder = ''.join((rootFolder, 'Fri0800/'))
sftp, success = UAL.new2current(startTuple, endTuple, targetFolder)
# Euphonic Schmorgasborg archive for 7/22/2016
startTuple = (2016, 7, 22, 10,00,00)
endTuple = (2016,7,22,12,0,00)
targetFolder = ''.join((rootFolder, 'Fri1000/'))
sftp, success = UAL.new2current(startTuple, endTuple, targetFolder)
# RLE archive for 7/22/2016
startTuple = (2016, 7, 22, 13,00,00)
endTuple = (2016,7,22,15,03,00)
targetFolder = ''.join((rootFolder, 'Fri1300/'))
sftp, success = UAL.new2current(startTuple, endTuple, targetFolder)
# Kitty Slick's shoes archive for 7/22/2016
startTuple = (2016, 7, 22, 15,00,00)
endTuple = (2016,7,22,17,03,00)
targetFolder = ''.join((rootFolder, 'Fri1500/'))
sftp, success = UAL.new2current(startTuple, endTuple, targetFolder)
# RedHot Record Jamboree archive for 7/22/2016
startTuple = (2016, 7, 22, 19,00,00)
endTuple = (2016,7,22,17,20,00)
targetFolder = ''.join((rootFolder, 'Fri1900/'))
sftp, success = UAL.new2current(startTuple, endTuple, targetFolder)
# Rick's Rock Show archive for 7/22/2016
startTuple = (2016, 7, 22, 20,00,00)
endTuple = (2016,7,22,22,03,00)
targetFolder = ''.join((rootFolder, 'Fri2100/'))
sftp, success = UAL.new2current(startTuple, endTuple, targetFolder)
'''
UAL.closeConnection(sftp)
print
print '++++++++++++++++++++++++++++++++++++++++++++++'
print 'END of UploadArchiveCron -> ', str(DT.datetime.now() + relativedelta(microsecond=0))
print '++++++++++++++++++++++++++++++++++++++++++++++'
print