[ubuntu-za] Copying files
Bill Cairns
cairnsww at gmail.com
Fri Mar 30 07:07:15 UTC 2012
On Thu, Mar 29, 2012 at 2:52 PM, William Walter Kinghorn
<williamk at dut.ac.za> wrote:
> Hi All,
>
> Just found this article : http://www.freesoftwaremagazine.com/articles/easy_file_sync_bitpocket
>
> William
Thanks William - looks good.
For what it is worth, I rediscovered Zenity the other day and wrote a
simple script to provide a graphical front end. Here it is:
#!/bin/sh
#
# copyu - a simple script providing a zenity front end to the cp -u dir1 dir2
# command.
#
# To do - some error checking to provide an exit if the operator cancels on the
# file selection. (What happens now is that the cp statement is
invalid and gives
# an error).
#
# March 2012
cd /home/bill/
FILEF=`zenity --file-selection --title="Choose directory to
back up" --directory`
echo "Copy from \"$FILEF\" "
DIRT=`zenity --file-selection --title="Choose directory to copy to"
--directory`
cp -uR $FILEF $DIRT
cd -P
More information about the ubuntu-za
mailing list