Skip to content Skip to sidebar Skip to footer

Copying Logs In Python Using The Command Line Function

I had a doubt with my code which i think I can verify here . My requirement is to copy the apache log and error log from two different servers . Iv written down a python program, u

Solution 1:

Consider using rsync instead of scp

Solution 2:

Do your logs have the same filenames on both machines? scp will overwrite them if they do.

Personally I would have two directories, one for each machine. Or use a timestamp as suggested by Sylar in his answer.

Post a Comment for "Copying Logs In Python Using The Command Line Function"