i have arch setup and i am using smbnetfs to mount some windows shares in /mnt/smbnet
what i want to do is copy files from my home dir to a dir in /mnt/smbnet but i also need it to remove files if i have deleted them from my home dir
seems that cp would be the easiest for me, but i cant get it to remove a file from the dest that has been deleted from the source
example, i can do this as root
and it does copy files. and if i add a file, it copies the new one over. but if i delete a file and run this command, the deleted file does not get removed from /mnt/smbnet
didnt see anything in man cp that relates to what i am trying to do. did i miss something? is there a better way?
ok, sorry, this isnt a bash script, but i would put it in one, sorry if my title is misleading
System: Ubuntu Intrepid Ibex
I'm running webcamd as a sort of "security" program, but I need a script that will archive my webcam.jpg files.
So, take the following file:
/home/slag/www/webcam.jpg
Rename it--preferably with a time stamp.
Place it in say:
/home/slag/www/history/
... (4 Replies)
Basically it's for a work assignment.
Have to make a menu with the following choices
***************menu*********************
1) Show Current Directory
2) Dispaly Current Time and Date
3) Copy
4) Change Password
5) write directory to file
6) Edit File Directory
7) Make backup from... (1 Reply)
Hi, I have a bunch of media files in a directory that have been converted (from MTS to MOV format), so my directory contains something like this:
clip1.mts
clip1.mov
clip2.mts
clip2.mov
The problem is that the .mov files that have been created have the timestamps of the conversion task,... (2 Replies)
Hello,
I have written a script to copy files from one partion to another. Not sure if this is correct.
#!/bin/sh
CDR_SOURCE=/storage/archive/logmgmt/result/billing/
CDR_DEST=/storage4/archive/logmgmt/result/billing/
cp $CDR_SOURCE $CDR_DEST;
exit 0
The CDR_SOURCE folder has... (5 Replies)
Beginner/Intermediate shell; comfortable in the command line.
I have been looking for a solution to a backup problem. I need to compare Directory 1 to Directory 2 and copy all modified or new files/directories from Directory 1 to Directory 3. I need the directory and file structure to be... (4 Replies)
Hi
I have the following script to copy files from one directory to another:
#!/bin/sh
touch -mt 201304240000 /var/tmp/ref1
touch -mt 201305152359 /var/tmp/ref2
find /moneta_collected02/in_psl -type f \( -newer /var/tmp/ref1 -a ! -newer /var/tmp/ref2 \) > file_lst
cp -pr $(< file_lst)... (6 Replies)
Our Apache log files are written to a location on the server that we as clients have no access. Don't ask.
Every month, I have to e-mail the administrator to have him manually copy our Apache log files to a directory in our file space. You can probably guess how efficient it is to do things this... (3 Replies)
Hello,
Trying to get a bash for files received on daily basis and want to copy those files to different directory and send an email notification if file exists then send the file counts else Alert with no file received.
FileName format: DailyTransaction_2015-03-09_ 200.csv before 200 their is... (1 Reply)
hi all,
i want a program or to make a bash script to find out the total ETA/percent (would be nice aswell a progress bar) of a copy recursive command
so lets say i do -
cp -r /source_folder/ /destinatation_folder/
and when i run it i get no information on the screen of how the copy is... (20 Replies)
The bash executes but returns no results and the set -xv showed while the $run variable in blue, was extracted correctly, the $match value in green, was not, rather both values in home/cmccabe/Desktop/f1 were extracted not just the matching.
There will always be an exact match from the $run to... (7 Replies)
Discussion started by: cmccabe
7 Replies
LEARN ABOUT DEBIAN
copyfs-mount
COPYFS-MOUNT(1) User Commands COPYFS-MOUNT(1)NAME
copyfs-mount - mounts a versioned file system
SYNOPSIS
copyfs-mount version-directory mount-point
DESCRIPTION
This script lets you mount a CopyFS file system. version-directory is the directory where the files and version information will be stored
by CopyFS.
When using CopyFS for the first time, copyfs-mount will create the required files in the version-directory before running copyfs-daemon.
mount-point is the directory where the copyfs file system will be mounted. This is where the users will have access to the files.
If you want to mount a CopyFS at '/mnt/fs', whose version directory is at /var/versions, you would use:
root@host# copyfs-mount /var/versions /mnt/fs
To unmount it, simply do:
root@host# umount /mnt/fs
As you would do for any other filesystem.
You can also allow an ordinary non-root users to mount and unmount CopyFS filesystems provided that the user is added to the 'fuse' group.
Ordinary users will be able unmount the filesystem, using the fusermount command:
$ fusermount -u mount-point
AUTHORS
CopyFS was created by Thomas Joubert and Nicolas Vigier <boklm@mars-attacks.org>
LINKS
<http://n0x.org/copyfs/> CopyFS web site.
<http://fuse.sourceforge.net/> FUSE - Filesystem in USErspace
SEE ALSO copyfs(1), copyfs-fversion(1), copyfs-daemon(1), fusermount(1)copyfs-mount May 2008 COPYFS-MOUNT(1)