On 2022-02-10 17:20, BmoreIT wrote:
I did a data export from Google to export all company data - Google Data Export
It shows the root folder and to download, I run this command (it automatically
enters this command)
gsutil -m cp -r \ "gs://takeout-export-myUniqueID" \.
But I have no idea where
I did a data export from Google to export all company data - Google Data Export
It shows the root folder and to download, I run this command (it automatically
enters this command)
gsutil -m cp -r \ "gs://takeout-export-myUniqueID" \.
But I have no idea where it would save it being I am not a GCP
On 6/18/2011 1:13 PM, Michael Hrivnak wrote:
Python is great for automating sysadmin tasks, but perhaps you should
just use rsync for this. It comes with the benefit of only copying
the changes instead of every file every time.
"rsync -a C:\source E:\destination" and you're done.
Perhaps 'syn
Python is great for automating sysadmin tasks, but perhaps you should
just use rsync for this. It comes with the benefit of only copying
the changes instead of every file every time.
"rsync -a C:\source E:\destination" and you're done.
Michael
On Fri, Jun 17, 2011 at 1:06 AM, John Salerno wrot
()
> >> "Recursively copy an entire directory tree rooted at src. "
>
> > Yeah, but shutil.copytree says:
>
> > "The destination directory, named by dst, must not already exist"
>
> > which again brings me back to the original problem. A
but shutil.copytree says:
"The destination directory, named by dst, must not already exist"
which again brings me back to the original problem. All I'm looking
for is a simple way to copy files from one location to another,
overwriting as necessary, but there doesn't seem to be a
l.copytree says:
"The destination directory, named by dst, must not already exist"
which again brings me back to the original problem. All I'm looking
for is a simple way to copy files from one location to another,
overwriting as necessary, but there doesn't seem to be a single
fu
On 6/17/2011 12:17 PM, John Salerno wrote:
On Jun 17, 2:25 am, Gregory Ewing wrote:
It sounds like shutil.copy() is what you want, or one of the
other related functions in the shutil module.
This looks promising! But can src be a directory, or does it have to
be a file? For my purposes (co
On 01/-10/-28163 02:59 PM, John Salerno wrote:
Based on what I've read, it seems os.rename is the proper function to
use, but I'm a little confused about the syntax. Basically I just want
to write a simple script that will back up my saved game files when I
run it. So I want it to copy a set of f
On Jun 17, 2:25 am, Gregory Ewing wrote:
> John Salerno wrote:
> > I want it to copy a set of files/directories from a
> > location on my C:\ drive to another directory on my E:\ drive. I don't
> > want to rename or delete the originals,
>
> It sounds like shutil.copy() is what you want, or one of
On 17/06/2011 06:06, John Salerno wrote:
Based on what I've read, it seems os.rename is the proper function to
use, but I'm a little confused about the syntax. Basically I just want
to write a simple script that will back up my saved game files when I
run it. So I want it to copy a set of files/d
John Salerno wrote:
I want it to copy a set of files/directories from a
location on my C:\ drive to another directory on my E:\ drive. I don't
want to rename or delete the originals,
It sounds like shutil.copy() is what you want, or one of the
other related functions in the shutil module.
--
G
On 2011.06.17 12:06 AM, John Salerno wrote:
> "On Windows, if dst already exists, OSError will be raised even if it
> is a file.."
If you try to create a file or directory that already exists on Windows,
you'll get a WindowsError with error code 183:
>>> os.mkdir('C:\\common\\games')
Traceback (mos
Based on what I've read, it seems os.rename is the proper function to
use, but I'm a little confused about the syntax. Basically I just want
to write a simple script that will back up my saved game files when I
run it. So I want it to copy a set of files/directories from a
location on my C:\ drive
I haven't tested this, but i maybe think it works?
import shutil
try:
copy("your_file.txt", "your_subfolder")
print "Done!"
except:
print "Failed!"
--
http://mail.python.org/mailman/listinfo/python-list
How can I copy a file from one folder to another(subfolder) without
change and property. I work on zope.
--
http://mail.python.org/mailman/listinfo/python-list
files. I
> map the SMB share on the client, copy these files, and unmap SMB).
>
> Then I thinking to ssh protocol to improve protection.
>
> The backup script is a py script. I see that Winscp can copy files through
> ssh tunnel. Can I do it too ?
> How ? How to I do it in pythoni
ystem admin asked me, how can I improve the safety of the copy
> operation, and the storing (now I use Samba share to store these files. I
> map the SMB share on the client, copy these files, and unmap SMB).
>
> Then I thinking to ssh protocol to improve protection.
>
> The backu
ration, and the storing (now I use Samba share to store these files. I
map the SMB share on the client, copy these files, and unmap SMB).
Then I thinking to ssh protocol to improve protection.
The backup script is a py script. I see that Winscp can copy files through
ssh tunnel. Can I do it too ?
ration, and the storing (now I use Samba share to store these files. I
map the SMB share on the client, copy these files, and unmap SMB).
Then I thinking to ssh protocol to improve protection.
The backup script is a py script. I see that Winscp can copy files through
ssh tunnel. Can I do it too ?
ration, and the storing (now I use Samba share to store these files. I
map the SMB share on the client, copy these files, and unmap SMB).
Then I thinking to ssh protocol to improve protection.
The backup script is a py script. I see that Winscp can copy files through
ssh tunnel. Can I do it too ?
21 matches
Mail list logo