Sponsored Content
Full Discussion: bash script to copy files
Top Forums Shell Programming and Scripting bash script to copy files Post 302511423 by Nevyn on Wednesday 6th of April 2011 06:43:25 PM
Old 04-06-2011
Code:
rsync -az --delete /home/user/Videos/ /mnt/smbnet/share/Vids

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Simple BASH shell script to rename webcam jpg and copy into a new directory.

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)
Discussion started by: robfindlay
4 Replies

2. Shell Programming and Scripting

Help: Bash backup script (includes copy, test-

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)
Discussion started by: Covax
1 Replies

3. Shell Programming and Scripting

Bash script to copy timestamps of multiple files

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)
Discussion started by: Krakus
2 Replies

4. Shell Programming and Scripting

Copy Files with script

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)
Discussion started by: Siddheshk
5 Replies

5. Shell Programming and Scripting

Compare & Copy Directories : Bash Script Help

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)
Discussion started by: Rod
4 Replies

6. Shell Programming and Scripting

Error on script to copy files

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)
Discussion started by: fretagi
6 Replies

7. Shell Programming and Scripting

Bash script to copy apache log files to client directory

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)
Discussion started by: gregraven
3 Replies

8. Shell Programming and Scripting

Bash for checking and copy Daily files and send an email

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)
Discussion started by: krux_rap
1 Replies

9. Programming

Program or bash script to see total progress of copy

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)
Discussion started by: robertkwild
20 Replies

10. Shell Programming and Scripting

Bash to copy subfolder and files to matching directory

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
smbnetfs(1)						      General Commands Manual						       smbnetfs(1)

NAME
smbnetfs - User-space filesystem for SMB/NMB (Windows) network servers and shares DESCRIPTION
usage: smbnetfs mountpoint [options] general options: -o opt,[opt...] mount options -h --help print help -V --version print version SMBNetFS options: -o config=PATH path to config (~/.smb/smbnetfs.conf) -o smbnetfs_debug=N SMBNetFS debug level (N<=10) -o smb_debug_level=N Samba debug level (N<=10) -o log_file=PATH File to store SMBNetFS debug messages -o local_charset=CHARSET Local charset (autodetected) -o samba_charset=CHARSET Charset used by samba (utf-8) -o use_gnome_keyring=BOOL Enable/disable usage of gnome-keyring -o gnome_keyring_timeout=T auth retrieving timeout for gnome_keyring (500ms) -o max_rw_block_size=N Maximum size of r/w block in Kb (autodetected) -o smb_tree_scan_period=T Period of scanning samba network tree (300s) -o smb_tree_elements_ttl=T TTL of scanned elements in samba tree (900s) -o smb_query_browsers=BOOL Enable/disable scanning of samba tree (on) -o show_$_shares=BOOL Enable/disable showing of hidden shares (off) -o show_hidden_hosts=BOOL See in documentation (off) -o free_space_size=N Free space size in pages (0) -o quiet_flag=BOOL Do not fail on chown/chgroup (on) -o stat_workaround_depth=N konquerror and gnome termal hack (3) -o time_step=T Scheduler sleep interval (10s) -o config_update_period=T Configuration update interval (300s) -o max_ctx_count=N Maximum number of childs (15) -o max_retry_count=N Number of retries before fail (3) -o listen_timeout=T Child process inactivity timeout (300s) -o reply_timeout=T Child process reply timeout (30s) -o max_passwd_query_count=N See in documentation (10) FUSE options: -d -o debug enable debug output (implies -f) -f foreground operation -s disable multi-threaded operation -o allow_other allow access to other users -o allow_root allow access to root -o nonempty allow mounts over non-empty file/dir -o default_permissions enable permission checking by kernel -o fsname=NAME set filesystem name -o large_read issue large read requests (2.4 only) -o max_read=N set maximum size of read requests -o hard_remove immediate removal (don't hide files) -o use_ino let filesystem set inode numbers -o readdir_ino try to fill in d_ino in readdir -o direct_io use direct I/O -o kernel_cache cache files in kernel -o umask=M set file permissions (octal) -o uid=N set file owner -o gid=N set file group -o entry_timeout=T cache timeout for names (1.0s) -o negative_timeout=T cache timeout for deleted names (0.0s) -o attr_timeout=T cache timeout for attributes (1.0s) FILES
Please create configuration directory ~/.smb. This directory should contain at least two files: smb.conf and smbnetfs.conf. You may copy smb.conf from the /etc/samba directory. You can find a sample of smbnetfs.conf in the /etc directory. AUTHOR
This manual page was written by Varun Hiremath <varunhiremath@gmail.com>, for the Debian project (but may be used by others). August 06, 2010 smbnetfs(1)
All times are GMT -4. The time now is 11:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy