RSYNC compare folder to tarfile [closed] - python

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have googled a bit and it seems that you can not make an incremental backup of a folder when you compare it to the same folder in a tarformat.
I doubt that uncompressing the folder then rsycing it and recompressing the folder is a fast way to get the job done.
Do any of you have a workaround or alternative to rsync to solve this problem?

I am using cygwin on my Windows machine (at work) and cannot test the tar command, but I believe the file will be updated and you will NOT be left with two copies of the file. I know the zip command works:
zip -ru dest/test.tar src
I cannot comment on performance of zip vs tar vs rsync. If you have many many files this may become worth investigating.

Related

Why does ~email return a network path? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I came across this while trying to use a Python script that used ~Email to refer to the email column of a csv. When entering just ~email / ~Email into a prompt, it returns
host is down: /Network/Servers/my.server.domain/Volumes/files/teachers/Group
This happens in bash, zsh, iterm, terminal, and on other computers bound to our server. These other computers have no aliases or command line utilities set up. Can someone explain this to me and how I can disable it to be able to use this script?
OS 10.9.5
It's the home directory of an account named email. You can avoid this shell home directory-substitution by escaping the ~ (\~email) or single-quoting the string ('~email').

Installing Python Canopy in Active Directory with a Mandnatory Profile [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
We are having difficulty installing our Python distribution in a way that will allow multiple users of the same computer to program in Python.
We switched the computers in our lab over to active directory with a mandatory profile. The problem is that Enthought Canopy puts several hundred MB of material in the profile itself. This makes it incredibly slow when a new user logs on. Can I get Canopy to install somewhere else, like a "normal" program?
Any help would be much appreciated, and I apologize if there is some obvious answer I am missing.

Pack python library to one file [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I want to pack pure python library into one source python script. (not exe, app, etc. I need exactly lib.py file) Is it possible? Which tools are exist for this?
Best is to pack all your python files into a zip: https://blogs.gnome.org/jamesh/2012/05/21/python-zip-files/
If you really want to, sure, it is possible to pack everything (including a zip I think) to a .py file, just write your custom importhook, store base64-encoded zip archive as a string in your since python source, a bit of hardcore magic here and there and voila, single python program,
Alternatively you could refactor all your dependencies and include these as classes for example in your source, but why bother?
Finally, there's no simple way to include compiled dependencies, i.e. those .so / .dylib / .dll files.
I don't think there is a tool out there that does exactly what you want, but I reckon pyinstaller/py2exe can be used to get pretty close, for example http://www.py2exe.org/old/ look for library.zip.

Recovery deleted but running python script [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I am running a python script python a.script on a linux box (I know all process information about it from /proc), but I accidentally run 'rm a.script', How can I recovery the script? I found this How do I determine the path to a binary of a process?, but I only found the python interpreter. How about lsof, but I have no idea about what to starts with.
The file itself is gone. You could only recover it by really tricky file system magic. There might be programs for specific file systems (like on DOS) which could recover the file on the disc ... but that is really bad file system trickery.
The other thing is, that the running script is also still in memory. But how could you recover that?? You could make a memory dump of course -- but I guess you only would get precompiled Python code -- and even that will not be easy to find. Get the source back from precompiled Python is not easy. Also you might not get a contiguous block of data, so it is really nearly impossible to get the coding back. At least your comments are really lost. But I would guess, getting back even some shady code without comments will be a task that is more costly than doing the coding again.
So, I regret to tell you: There is no chance, I see.

Add/remove programs in Windows XP with Python script [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I would like to add add/programs like adobe acrobat reader and other application in windows XP using Python script. Kindly looking for some help.
Thanks in advance!
Everest.
Are you installing or uninstalling?
Installing:
Easy way: subprocess.Popen the installer.
Nearly-as-easy way: subprocess.Popen the installer, with some Windows hackery so that the user doesn't have to click anything.
Uninstalling:
As above.
Hard way: work out the files changed on the computer and revert them manually.

Categories