Re: GCP Copy Files - Data Export

2022-02-10 Thread MRAB
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

GCP Copy Files - Data Export

2022-02-10 Thread BmoreIT
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

Re: How do you copy files from one location to another?

2011-06-18 Thread Terry Reedy
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

Re: How do you copy files from one location to another?

2011-06-18 Thread Michael Hrivnak
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

Re: How do you copy files from one location to another?

2011-06-17 Thread John Salerno
() > >> "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

Re: How do you copy files from one location to another?

2011-06-17 Thread Ethan Furman
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

Re: How do you copy files from one location to another?

2011-06-17 Thread John Salerno
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

Re: How do you copy files from one location to another?

2011-06-17 Thread Terry Reedy
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

Re: How do you copy files from one location to another?

2011-06-17 Thread Heather Brown
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

Re: How do you copy files from one location to another?

2011-06-17 Thread John Salerno
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

Re: How do you copy files from one location to another?

2011-06-17 Thread Tim Golden
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

Re: How do you copy files from one location to another?

2011-06-17 Thread Gregory Ewing
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

Re: How do you copy files from one location to another?

2011-06-16 Thread Andrew Berg
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

How do you copy files from one location to another?

2011-06-16 Thread John Salerno
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

Re: Copy files

2006-03-31 Thread v0id
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

Copy files

2006-03-31 Thread ChengGong
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

Re: Copy files to Linux server through ssh tunnel

2005-10-06 Thread Larry Bates
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

Re: Copy files to Linux server through ssh tunnel

2005-10-06 Thread Martin Franklin
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

Copy files to Linux server through ssh tunnel

2005-10-06 Thread durumdara
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 ?

Copy files to Linux server through ssh tunnel

2005-10-06 Thread durumdara
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 ?

Copy files to Linux server through ssh tunnel

2005-10-06 Thread durumdara
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 ?